Cmdlet.Invoke Method

Definition

Overloads

Invoke()

Invoke this cmdlet object returning a collection of results.

Invoke<T>()

Returns a strongly-typed enumerator for the results of this cmdlet.

Invoke()

Invoke this cmdlet object returning a collection of results.

C++
public:
 System::Collections::IEnumerable ^ Invoke();

Returns

The results that were produced by this class.

Attributes

Applies to

PowerShell SDK 7.4.0 e outras versións
Produto Versións
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

Invoke<T>()

Returns a strongly-typed enumerator for the results of this cmdlet.

C++
public:
generic <typename T>
 System::Collections::Generic::IEnumerable<T> ^ Invoke();

Type Parameters

T

The type returned by the enumerator

Returns

An instance of the appropriate enumerator.

Attributes

Exceptions

Thrown when the object returned by the cmdlet cannot be converted to the target type.

Applies to

PowerShell SDK 7.4.0 e outras versións
Produto Versións
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0