JobRouterModelFactory.ExceptionPolicy Method

Definition

Initializes a new instance of ExceptionPolicy.

public static Azure.Communication.JobRouter.ExceptionPolicy ExceptionPolicy (Azure.ETag eTag = default, string id = default, string name = default, System.Collections.Generic.IEnumerable<Azure.Communication.JobRouter.ExceptionRule> exceptionRules = default);
static member ExceptionPolicy : Azure.ETag * string * string * seq<Azure.Communication.JobRouter.ExceptionRule> -> Azure.Communication.JobRouter.ExceptionPolicy
Public Shared Function ExceptionPolicy (Optional eTag As ETag = Nothing, Optional id As String = Nothing, Optional name As String = Nothing, Optional exceptionRules As IEnumerable(Of ExceptionRule) = Nothing) As ExceptionPolicy

Parameters

eTag
ETag

The entity tag for this resource.

id
String

Id of an exception policy.

name
String

Friendly name of this policy.

exceptionRules
IEnumerable<ExceptionRule>

A collection of exception rules on the exception policy.

Returns

A new ExceptionPolicy instance for mocking.

Applies to