Cmdlet.Invoke Cmdlet.Invoke Cmdlet.Invoke Method

Definition

Overloads

Invoke() Invoke() Invoke()

Invoke this cmdlet object returning a collection of results.

Invoke<T>() Invoke<T>() Invoke<T>()

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

Invoke() Invoke() Invoke()

Invoke this cmdlet object returning a collection of results.

[System.Runtime.CompilerServices.IteratorStateMachine(typeof(System.Management.Automation.Cmdlet/<Invoke>d__40))]
public System.Collections.IEnumerable Invoke ();
member this.Invoke : unit -> System.Collections.IEnumerable
Public Iterator Function Invoke () As IEnumerable
Returns

The results that were produced by this class

Invoke<T>() Invoke<T>() Invoke<T>()

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

[System.Runtime.CompilerServices.IteratorStateMachine(typeof(System.Management.Automation.Cmdlet/<Invoke>d__41`1))]
public System.Collections.Generic.IEnumerable<T> Invoke<T> ();
member this.Invoke : unit -> seq<'T>
Public Iterator Function Invoke(Of T) () As IEnumerable(Of T)
Type Parameters
T

The type returned by the enumerator

Returns

An instance of the appropriate enumerator

Exceptions

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

Applies to