Get-RoyalObjectValue |
![]() |
Get-RoyalObjectValue
Get the value from a RoyalObject's property.
Get-RoyalObjectValue [-Object] <RoyalBase> [-Property] <string> [<CommonParameters>]
This cmdlet retrieves the value from a property from a RoyalObject.
-Object <RoyalBase>
The RoyalObject of which the property value is returned.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Property <string>
The property of the RoyalObject that is returned.
Required? true
Position? 1
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 of which the property value is returned.
System.String
The property of the RoyalObject that is returned.
---------- EXAMPLE 1 ----------
$createdDatetime = Get-RoyalObjectValue -Object $obj -Property "Created"
$obj needs to be of type RoyalObject. Normally, when you create a varialbe using New-RoyalObject, you get back the
exact type requested. For this cmdlet, first cast the variable to a RoyalObject (the base class) like so:
[RoyalDocumentLibrary.RoyalObject]$obj = $folder.