Share via


FabricClient.QueryClient.GetApplicationNameAsync Method

Definition

Gets the application name for the specified service.

public System.Threading.Tasks.Task<System.Fabric.Query.ApplicationNameResult> GetApplicationNameAsync (Uri serviceName, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetApplicationNameAsync : Uri * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ApplicationNameResult>
Public Function GetApplicationNameAsync (serviceName As Uri, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ApplicationNameResult)

Parameters

serviceName
Uri

The name of the service to get the application name for.

timeout
TimeSpan

Specifies the duration this operation has to complete before timing out.

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Returns

A task that represents the asynchronous query operation.

The returned task contains the application name as ApplicationNameResult.

Exceptions

Applies to