Partilhar via


ItemCmdletProviderIntrinsics.Invoke Method

Definition

Overloads

Invoke(String)

Invokes the default action of the item at the specified path.

Invoke(String[], Boolean)

Invokes the default action of the item(s) at the specified path(s).

Invoke(String)

Invokes the default action of the item at the specified path.

public:
 void Invoke(System::String ^ path);
public:
 void Invoke(Platform::String ^ path);
void Invoke(std::wstring const & path);
public void Invoke (string path);
member this.Invoke : string -> unit
Public Sub Invoke (path As String)

Parameters

path
String

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

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

Invoke(String[], Boolean)

Invokes the default action of the item(s) at the specified path(s).

public:
 void Invoke(cli::array <System::String ^> ^ path, bool literalPath);
public:
 void Invoke(Platform::Array <Platform::String ^> ^ path, bool literalPath);
void Invoke(std::Array <std::wstring const &> const & path, bool literalPath);
public void Invoke (string[] path, bool literalPath);
member this.Invoke : string[] * bool -> unit
Public Sub Invoke (path As String(), literalPath As Boolean)

Parameters

path
String[]

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

literalPath
Boolean

If true, globbing is not done on paths.

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