Set-RoyalObjectValue |
![]() |
Set-RoyalObjectValue
Set the value from a RoyalObject's property.
Set-RoyalObjectValue [-Object] <RoyalBase> [-Property] <string> [-Value] <object> [<CommonParameters>]
This cmdlet sets the value from a property from a RoyalObject. A new value can only be set if the type of the Value
parameter matches (or can be casted) to the type of the parameter Property.
-Object <RoyalBase>
The RoyalObject on which a new value is set. Use the Out-RoyalDocument to save it.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Property <string>
The property of the RoyalObject which is going to be set. Use the Out-RoyalDocument to save it.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Value <object>
The new value. Use the Out-RoyalDocument to save it.
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.RoyalBase
The RoyalObject on which a new value is set. Use the Out-RoyalDocument to save it.
System.String
The property of the RoyalObject which is going to be set. Use the Out-RoyalDocument to save it.
System.Object
The new value. Use the Out-RoyalDocument to save it.
---------- EXAMPLE 1 ----------
Set-RoyalObjectValue -Object $folder -Property "Created" -Value $dt
$dt is of Type System.DateTime.