external help file | applicable | schema |
---|---|---|
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online |
2.0.0 |
Returns a previously not loaded property of a ClientObject
Get-PnPProperty -ClientObject <ClientObject>
-Property <String[]>
[-Connection <SPOnlineConnection>]
Will populate properties of an object and optionally, if needed, load the value from the server. If one property is specified its value will be returned to the output.
PS:> $web = Get-PnPWeb
PS:> Get-PnPProperty -ClientObject $web -Property Id, Lists
PS:> $web.Lists
Will load both the Id and Lists properties of the specified Web object.
PS:> $list = Get-PnPList -Identity 'Site Assets'
PS:> Get-PnPProperty -ClientObject $list -Property Views
Will load the views object of the specified list object and return its value to the output.
Specifies the object where the properties of should be retrieved
Type: ClientObject
Parameter Sets: (All)
Required: True
Position: 0
Accept pipeline input: False
The properties to load. If one property is specified its value will be returned to the output.
Type: String[]
Parameter Sets: (All)
Required: True
Position: 1
Accept pipeline input: False
Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: SPOnlineConnection
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False