IHostedServiceOperations.GetAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Get Hosted Service Properties operation retrieves system properties for the specified cloud service. These properties include the service name and service type; and the name of the affinity group to which the service belongs, or its location if it is not part of an affinity group. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460806.aspx for more information)
public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceGetResponse> GetAsync (string serviceName, System.Threading.CancellationToken cancellationToken);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.HostedServiceGetResponse>
Public Function GetAsync (serviceName As String, cancellationToken As CancellationToken) As Task(Of HostedServiceGetResponse)
Parameters
- serviceName
- String
The name of the cloud service.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Get Hosted Service operation response.
Applies to
Azure SDK for .NET