Compartilhar via


Método ActivityOperationsExtensions.GetAsync

Retrieve the activity in the module identified by module name and activity name. (see https://aka.ms/azureautomationsdk/activityoperations for more information)

Namespace: Microsoft.WindowsAzure.Management.Automation
Assembly: Microsoft.WindowsAzure.Management.Automation (em Microsoft.WindowsAzure.Management.Automation.dll)

Uso

'Uso
Dim operations As IActivityOperations
Dim automationAccount As String
Dim moduleName As String
Dim activityName As String
Dim returnValue As Task(Of ActivityGetResponse)

returnValue = ActivityOperationsExtensions.GetAsync(operations, automationAccount, moduleName, activityName)

Sintaxe

'Declaração
<ExtensionAttribute> _
Public Shared Function GetAsync ( _
    operations As IActivityOperations, _
    automationAccount As String, _
    moduleName As String, _
    activityName As String _
) As Task(Of ActivityGetResponse)
[ExtensionAttribute] 
public static Task<ActivityGetResponse> GetAsync (
    IActivityOperations operations,
    string automationAccount,
    string moduleName,
    string activityName
)
[ExtensionAttribute] 
public:
static Task<ActivityGetResponse^>^ GetAsync (
    IActivityOperations^ operations, 
    String^ automationAccount, 
    String^ moduleName, 
    String^ activityName
)
/** @attribute ExtensionAttribute() */ 
public static Task<ActivityGetResponse> GetAsync (
    IActivityOperations operations, 
    String automationAccount, 
    String moduleName, 
    String activityName
)
ExtensionAttribute 
public static function GetAsync (
    operations : IActivityOperations, 
    automationAccount : String, 
    moduleName : String, 
    activityName : String
) : Task<ActivityGetResponse>

Parâmetros

  • operations
    Reference to the Microsoft.WindowsAzure.Management.Automation.IActivityOperations.
  • automationAccount
    Required. The automation account name.
  • moduleName
    Required. The name of module.
  • activityName
    Required. The name of activity.

Valor de retorno

The response model for the get activity operation.

Segurança de thread

Qualquer membro estático público (compartilhado no Visual Basic) desse tipo é thread-safe. Não há garantia de que qualquer membro de instância seja seguro para threads.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows 7 e Windows Server 2008

Plataformas de destino

Consulte também

Referência

Classe ActivityOperationsExtensions
Membros ActivityOperationsExtensions
Namespace Microsoft.WindowsAzure.Management.Automation