Set-RoyalDocumentType

Set-RoyalDocumentType

Scripting > Reference > PowerShell Commandlets >

NAME

Set-RoyalDocumentType
 
 

 

SYNOPSIS

Sets the RoyalDocumentType.
 
 

 

SYNTAX

Set-RoyalDocumentType [-Document] <RoyalDocument> [-Type] <RoyalDocumentType> [<CommonParameters>]
 
 
 

 

DESCRIPTION

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).
 
 

 

PARAMETERS

-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).
 
 

 

INPUTS

RoyalDocumentLibrary.RoyalDocument
 
 
The RoyalDocument of which the document type should be changed.
 
RoyalDocument.PowerShell.RoyalDocumentType
 
 
The new document type (Merge or OverWrite).
 
 
 

 

OUTPUTS

 
---------- EXAMPLE 1 ----------
 
Set-RoyalDocumentType -Document $document -Type Merge
 
 
This cmdlete only changes the RoyalDocumentType in memory - for persisting call Out-RoyalDocument.
 
 
 

 

RELATED LINKS

New-RoyalObject

Out-RoyalDocument

Move-RoyalObject

Copy-RoyalObject

Get-RoyalObject