JobRouterAdministrationClient.GetExceptionPoliciesAsync 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
GetExceptionPoliciesAsync(RequestContext) |
[Protocol Method] Retrieves existing exception policies.
|
GetExceptionPoliciesAsync(CancellationToken) |
Retrieves existing exception policies. |
GetExceptionPoliciesAsync(RequestContext)
[Protocol Method] Retrieves existing exception policies.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler Azure.Communication.JobRouter.JobRouterAdministrationClient.GetExceptionPoliciesAsync(System.Nullable{System.Int32},System.Threading.CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.AsyncPageable<BinaryData> GetExceptionPoliciesAsync (Azure.RequestContext context);
abstract member GetExceptionPoliciesAsync : Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetExceptionPoliciesAsync : Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetExceptionPoliciesAsync (context As RequestContext) As AsyncPageable(Of BinaryData)
Parameters
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The AsyncPageable<T> from the service containing a list of BinaryData objects. Details of the body schema for each item in the collection are in the Remarks section below.
Exceptions
Service returned a non-success status code.
Applies to
GetExceptionPoliciesAsync(CancellationToken)
Retrieves existing exception policies.
public virtual Azure.AsyncPageable<Azure.Communication.JobRouter.ExceptionPolicy> GetExceptionPoliciesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetExceptionPoliciesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.JobRouter.ExceptionPolicy>
override this.GetExceptionPoliciesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.JobRouter.ExceptionPolicy>
Public Overridable Function GetExceptionPoliciesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ExceptionPolicy)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
The server returned an error. See Message for details returned from the server.
Applies to
Azure SDK for .NET