Set-RoyalObjectValue

Set-RoyalObjectValue

Scripting > Reference > PowerShell Commandlets >

NAME

Set-RoyalObjectValue
 
 

 

SYNOPSIS

Set the value from a RoyalObject's property.
 
 

 

SYNTAX

Set-RoyalObjectValue [-Object] <RoyalBase> [-Property] <string> [-Value] <object> [<CommonParameters>]
 
 
 

 

DESCRIPTION

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.
 
 

 

PARAMETERS

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

 

INPUTS

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.
 
 
 

 

OUTPUTS

 
---------- EXAMPLE 1 ----------
 
Set-RoyalObjectValue -Object $folder -Property "Created" -Value $dt
 
 
$dt is of Type System.DateTime.
 
 
 

 

RELATED LINKS

New-RoyalObject

Move-RoyalObject

Copy-RoyalObject

Set-RoyalObjectValue

Get-RoyalObjectValue

Get-RoyalObject