Sdílet prostřednictvím


ItemCmdletProviderIntrinsics.Get Method

Definition

Overloads

Get(String)

Gets the item at the specified path.

Get(String[], Boolean, Boolean)

Gets the item at the specified path.

Get(String)

Gets the item at the specified path.

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

Parameters

path
String

The path to the item to retrieve. It may be a drive or provider-qualified path and may include glob characters.

Returns

The object(s) at the specified path.

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[], Boolean, Boolean)

Gets the item at the specified path.

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

Parameters

path
String[]

The path(s) to the item(s) to retrieve. They may be a drive or provider-qualified path(s) and may include glob characters.

force
Boolean

Passed on to providers to force operations.

literalPath
Boolean

If true, globbing is not done on paths.

Returns

The object(s) at the specified path.

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