New-RoyalDocument |
![]() |
New-RoyalDocument
Creates a new RoyalDocument
New-RoyalDocument [-Store] <RoyalStore> [-Name] <string> [-FileName] <string> [<CommonParameters>]
This cmdlet creates a new RoyalDocument in memory. For saving it to disk, use Out-RoyalDocument.
-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 (http://go.microsoft.com/fwlink/?LinkID=113216).
RoyalDocumentLibrary.RoyalStore
The RoyalStore to which the new RoyalDocument will be assigned.
System.String
The Name of the new RoyalDocument.
---------- 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.