Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPropertyCmdletProvider.GetProperty Method (String, Collection<String>)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Retrieves the properties of the specified item.

Namespace:   System.Management.Automation.Provider
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

void GetProperty(
	string path,
	Collection<string> providerSpecificPickList
)

Parameters

path
Type: System.String

The path to the item whose properties are to be retrieved.

providerSpecificPickList
Type: System.Collections.ObjectModel.Collection<String>

A collection of the properties to be retrieved. If this parameter is empty, return all properties of the item. For more information, see the Remarks section.

The implementation of this method returns a PSObject object by calling the WritePropertyObject method.

Implementations of this method should return all properties if the providerSpecificPickList parameter is empty. The implementation of that parameter should also support wildcard matching of property names for each element in the pick list.

In this context, an "item" is something that contains content within a store. For example, the items of the file system store could be files or directories.

This method defines provider-specific functionality for the Get-ItemProperty cmdlet. If this implementation of the cmdlet requires addition parameters, the provider must also call the GetPropertyDynamicParameters method.

For more information about providers, see Windows PowerShell Providers [ps].

Return to top

Community Additions

Show: