Share via


IHostedServiceOperations.GetAsync Method

Asynchronously retrieves system properties for the specified cloud service.

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

Usage

'Usage
Dim instance As IHostedServiceOperations
Dim serviceName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of HostedServiceGetResponse)

returnValue = instance.GetAsync(serviceName, cancellationToken)

Syntax

'Declaration
Function GetAsync ( _
    serviceName As String, _
    cancellationToken As CancellationToken _
) As Task(Of HostedServiceGetResponse)
Task<HostedServiceGetResponse> GetAsync (
    string serviceName,
    CancellationToken cancellationToken
)
Task<HostedServiceGetResponse^>^ GetAsync (
    String^ serviceName, 
    CancellationToken cancellationToken
)
Task<HostedServiceGetResponse> GetAsync (
    String serviceName, 
    CancellationToken cancellationToken
)
function GetAsync (
    serviceName : String, 
    cancellationToken : CancellationToken
) : Task<HostedServiceGetResponse>

Parameters

  • serviceName
    The name of the cloud service for which information should be retrieved.
  • cancellationToken
    The cancellation token.

Return Value

The HostedServiceGetResponse object that contains information about the cloud service.

Remarks

These properties include the service name and service type; the name of the affinity group to which the service belongs, or its location if it is not part of an affinity group.

For more information about retrieving cloud service information, see the following resources:

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

IHostedServiceOperations Interface
IHostedServiceOperations Members
Microsoft.WindowsAzure.Management.Compute Namespace