Udostępnij za pośrednictwem


CmdletExtensions.ExecuteAsJob Method

Definition

Overloads

ExecuteAsJob<T>(T, String)
ExecuteAsJob<T>(T, String, Action<T>)

ExecuteAsJob<T>(T, String)

public static System.Management.Automation.Job ExecuteAsJob<T> (this T cmdlet, string jobName) where T : Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet;
static member ExecuteAsJob : 'T * string -> System.Management.Automation.Job (requires 'T :> Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet)
<Extension()>
Public Function ExecuteAsJob(Of T As AzurePSCmdlet) (cmdlet As T, jobName As String) As Job

Type Parameters

T

Parameters

cmdlet
T
jobName
String

Returns

Job

Applies to

ExecuteAsJob<T>(T, String, Action<T>)

public static System.Management.Automation.Job ExecuteAsJob<T> (this T cmdlet, string jobName, Action<T> executor) where T : Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet;
static member ExecuteAsJob : 'T * string * Action<'T (requires 'T :> Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet)> -> System.Management.Automation.Job (requires 'T :> Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet)
<Extension()>
Public Function ExecuteAsJob(Of T As AzurePSCmdlet) (cmdlet As T, jobName As String, executor As Action(Of T)) As Job

Type Parameters

T

Parameters

cmdlet
T
jobName
String
executor
Action<T>

Returns

Job

Applies to