PropertyCmdletProviderIntrinsics.Get Method

Definition

Overloads

Get(String, Collection<String>)

Gets the specified properties from the specified item(s)

Get(String[], Collection<String>, Boolean)

Gets the specified properties from the specified item(s)

Get(String, Collection<String>)

Gets the specified properties from the specified item(s)

public:
 System::Collections::ObjectModel::Collection<System::Management::Automation::PSObject ^> ^ Get(System::String ^ path, System::Collections::ObjectModel::Collection<System::String ^> ^ providerSpecificPickList);
public System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject> Get (string path, System.Collections.ObjectModel.Collection<string> providerSpecificPickList);
member this.Get : string * System.Collections.ObjectModel.Collection<string> -> System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject>
Public Function Get (path As String, providerSpecificPickList As Collection(Of String)) As Collection(Of PSObject)

Parameters

path
String

The path to the item to get the properties from.

providerSpecificPickList
Collection<String>

The properties to get from the item(s). If this is empty, null, or "*" all properties should be returned.

Returns

A PSObject for each item that the path represents. Each PSObject should contain a property for those in the providerSpecificPickList.

Exceptions

If path is null.

If the path refers to a provider that could not be found.

If the path refers to a drive that could not be found.

If path does not contain glob characters and could not be found.

If the provider that the path refers to does not support this operation.

If the provider threw an exception.

Applies to

Get(String[], Collection<String>, Boolean)

Gets the specified properties from the specified item(s)

public:
 System::Collections::ObjectModel::Collection<System::Management::Automation::PSObject ^> ^ Get(cli::array <System::String ^> ^ path, System::Collections::ObjectModel::Collection<System::String ^> ^ providerSpecificPickList, bool literalPath);
public System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject> Get (string[] path, System.Collections.ObjectModel.Collection<string> providerSpecificPickList, bool literalPath);
member this.Get : string[] * System.Collections.ObjectModel.Collection<string> * bool -> System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject>
Public Function Get (path As String(), providerSpecificPickList As Collection(Of String), literalPath As Boolean) As Collection(Of PSObject)

Parameters

path
String[]

The path(s) to the item(s) to get the properties from.

providerSpecificPickList
Collection<String>

The properties to get from the item(s). If this is empty, null, or "*" all properties should be returned.

literalPath
Boolean

If true, globbing is not done on paths.

Returns

A PSObject for each item that the path represents. Each PSObject should contain a property for those in the providerSpecificPickList.

Exceptions

If path is null.

If the path refers to a provider that could not be found.

If the path refers to a drive that could not be found.

If path does not contain glob characters and could not be found.

If the provider that the path refers to does not support this operation.

If the provider threw an exception.

Applies to