Set-RoyalDocumentType |
![]() |
Set-RoyalDocumentType
Sets the RoyalDocumentType.
Set-RoyalDocumentType [-Document] <RoyalDocument> [-Type] <RoyalDocumentType> [<CommonParameters>]
This cmdlet specifies, what happens, if a RoyalDocument is saved: Merge (merges all changes from the in-memory
RoyalDocument back to the version saved to disc) or OverWrite (overwrites the version on disc).
-Document <RoyalDocument>
The RoyalDocument of which the document type should be changed.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Type <RoyalDocumentType>
The new document type (Merge or OverWrite).
Required? true
Position? 1
Default value 0
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 of which the document type should be changed.
RoyalDocument.PowerShell.RoyalDocumentType
The new document type (Merge or OverWrite).
---------- EXAMPLE 1 ----------
Set-RoyalDocumentType -Document $document -Type Merge
This cmdlete only changes the RoyalDocumentType in memory - for persisting call Out-RoyalDocument.