Close-RoyalDocument |
![]() |
Close-RoyalDocument
Closes an opened RoyalDocument.
Close-RoyalDocument [-Document] <RoyalDocument> [[-Force] <SwitchParameter>] [<CommonParameters>]
This cmdlet closes an opened RoyalDocument and removes it from the RoyalStore.
-Document <RoyalDocument>
The RoyalDocument that will be closed.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Force <SwitchParameter>
Using Force closes the RoyalDocument even if it has changes. This parameter should always be used with caution.
Required? false
Position? 1
Default value False
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.RoyalDocument
The RoyalDocument that will be closed.
System.Management.Automation.SwitchParameter
Using Force closes the RoyalDocument even if it has changes. This parameter should always be used with caution.
---------- EXAMPLE 1 ----------
Close-RoyalDocument -Document $doc
When using -Force, the RoyalDocument is closed even if it has changes that have not been saved via
Out-RoyalDocument.