New-RoyalDocument

New-RoyalDocument

Scripting > Reference > PowerShell Commandlets >

NAME

New-RoyalDocument
 
 

 

SYNOPSIS

Creates a new RoyalDocument
 
 
 

 

SYNTAX

New-RoyalDocument [-Store] <RoyalStore> [-Name] <string> [-FileName] <string> [<CommonParameters>]
 
 
 

 

DESCRIPTION

This cmdlet creates a new RoyalDocument in memory. For saving it to disk, use Out-RoyalDocument.
 
 

 

PARAMETERS

-Store <RoyalStore>
The RoyalStore to which the new RoyalDocument will be assigned.
 
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
 
-Name <string>
The Name of the new RoyalDocument.
 
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
 
-FileName <string>
The FileName of the new RoyalDocument. For actually saving it to disc, use the cmdlet Out-RoyalDocument.
 
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
 
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
 
 

 

INPUTS

RoyalDocumentLibrary.RoyalStore
The RoyalStore to which the new RoyalDocument will be assigned.
 
System.String
The Name of the new RoyalDocument.
 
 
 

 

OUTPUTS

 
---------- EXAMPLE 1 ----------
 
$doc = New-RoyalDocument -Store $store -Name "document name" -FileName $fileName
 
This command only creates a new RoyalDocument and assigns it to a RoyalStore. It does not save the document to disk
- use Out-RoyalDocument for this.
 
 

 

RELATED LINKS

Out-RoyalDocument

Move-RoyalObject

Copy-RoyalObject

Set-RoyalObjectValue

Get-RoyalObjectValue

Get-RoyalObject