Get-RoyalObjectValue

Get-RoyalObjectValue

Scripting > Reference > PowerShell Commandlets >

NAME

Get-RoyalObjectValue
 
 

 

SYNOPSIS

Get the value from a RoyalObject's property.
 
 

 

SYNTAX

Get-RoyalObjectValue [-Object] <RoyalBase> [-Property] <string> [<CommonParameters>]
 
 
 

 

DESCRIPTION

This cmdlet retrieves the value from a property from a RoyalObject.
 
 

 

PARAMETERS

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

 

INPUTS

RoyalDocumentLibrary.RoyalBase
 
 
The RoyalObject of which the property value is returned.
 
System.String
 
 
The property of the RoyalObject that is returned.
 
 
 

 

OUTPUTS

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

 

RELATED LINKS

New-RoyalObject

Move-RoyalObject

Copy-RoyalObject

Set-RoyalObjectValue

Get-RoyalObjectValue

Get-RoyalObject