Share via


HostedServiceOperationsExtensions.GetExtensionAsync Method (IHostedServiceOperations, String, String)

 

Asynchronously retrieves information about a specified extension that was added to a cloud service.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

public static Task<HostedServiceGetExtensionResponse> GetExtensionAsync(
    this IHostedServiceOperations operations,
    string serviceName,
    string extensionId
)
public:
[ExtensionAttribute]
static Task<HostedServiceGetExtensionResponse^>^ GetExtensionAsync(
    IHostedServiceOperations^ operations,
    String^ serviceName,
    String^ extensionId
)
static member GetExtensionAsync : 
        operations:IHostedServiceOperations *
        serviceName:string *
        extensionId:string -> Task<HostedServiceGetExtensionResponse>
<ExtensionAttribute>
Public Shared Function GetExtensionAsync (
    operations As IHostedServiceOperations,
    serviceName As String,
    extensionId As String
) As Task(Of HostedServiceGetExtensionResponse)

Parameters

  • serviceName
    Type: System.String

    The name of the cloud service from which the extension information should be retrieved.

  • extensionId
    Type: System.String

    The identifier that was assigned to the extension when it was added to the cloud service.

Return Value

Type: System.Threading.Tasks.Task<HostedServiceGetExtensionResponse>

The HostedServiceGetExtensionResponse object that contains the extension information from the cloud service.

Remarks

For more information about retrieving extension information, see the following resources:

See Also

HostedServiceOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top