Share via


ActivityOperationsExtensions.GetAsync Method

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 (in Microsoft.WindowsAzure.Management.Automation.dll)

Usage

'Usage
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)

Syntax

'Declaration
<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>

Parameters

  • 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.

Return Value

The response model for the get activity operation.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

ActivityOperationsExtensions Class
ActivityOperationsExtensions Members
Microsoft.WindowsAzure.Management.Automation Namespace