FabricClient.QueryClient.GetServiceTypeListAsync 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.
Overloads
GetServiceTypeListAsync(String, String) |
Gets the list of service types. |
GetServiceTypeListAsync(String, String, String) |
Gets the list of service types. |
GetServiceTypeListAsync(String, String, String, TimeSpan, CancellationToken) |
Gets the list of service types. |
GetServiceTypeListAsync(String, String)
Gets the list of service types.
public System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList> GetServiceTypeListAsync (string applicationTypeName, string applicationTypeVersion);
member this.GetServiceTypeListAsync : string * string -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList>
Public Function GetServiceTypeListAsync (applicationTypeName As String, applicationTypeVersion As String) As Task(Of ServiceTypeList)
Parameters
- applicationTypeName
- String
The type name of the application to get service types for.
- applicationTypeVersion
- String
The application type version to get service types for.
Returns
A task that represents the asynchronous query operation.
The returned task contains the list of service types as ServiceTypeList.
Exceptions
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Applies to
GetServiceTypeListAsync(String, String, String)
Gets the list of service types.
public System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList> GetServiceTypeListAsync (string applicationTypeName, string applicationTypeVersion, string serviceTypeNameFilter);
member this.GetServiceTypeListAsync : string * string * string -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList>
Public Function GetServiceTypeListAsync (applicationTypeName As String, applicationTypeVersion As String, serviceTypeNameFilter As String) As Task(Of ServiceTypeList)
Parameters
- applicationTypeName
- String
The type name of the application to get service types for.
- applicationTypeVersion
- String
The application type version to get service types for.
- serviceTypeNameFilter
- String
The name of the service type to get details for.
Returns
A task that represents the asynchronous query operation.
The returned task contains the list of service types as ServiceTypeList.
Exceptions
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
This operation has a timeout of 60 seconds.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Applies to
GetServiceTypeListAsync(String, String, String, TimeSpan, CancellationToken)
Gets the list of service types.
public System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList> GetServiceTypeListAsync (string applicationTypeName, string applicationTypeVersion, string serviceTypeNameFilter, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetServiceTypeListAsync : string * string * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList>
Public Function GetServiceTypeListAsync (applicationTypeName As String, applicationTypeVersion As String, serviceTypeNameFilter As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ServiceTypeList)
Parameters
- applicationTypeName
- String
The type name of the application to get service types for.
- applicationTypeVersion
- String
The application type version to get service types for.
- serviceTypeNameFilter
- String
The name of the service type to get details 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 list of service types as ServiceTypeList.
Exceptions
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Applies to
Azure SDK for .NET