Clerk Constructors

Definition

Initializes a new instance of the Clerk class.

Overloads

Clerk(String, String, CompensatorOptions)

Initializes a new instance of the Clerk class.

Clerk(Type, String, CompensatorOptions)

Initializes a new instance of the Clerk class.

Clerk(String, String, CompensatorOptions)

Initializes a new instance of the Clerk class.

C#
public Clerk(string compensator, string description, System.EnterpriseServices.CompensatingResourceManager.CompensatorOptions flags);

Parameters

compensator
String

The name of the compensator.

description
String

The description of the compensator.

flags
CompensatorOptions

A bitwise combination of the CompensatorOptions values.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Clerk(Type, String, CompensatorOptions)

Initializes a new instance of the Clerk class.

C#
public Clerk(Type compensator, string description, System.EnterpriseServices.CompensatingResourceManager.CompensatorOptions flags);

Parameters

compensator
Type

A type that represents the compensator.

description
String

The description of the compensator.

flags
CompensatorOptions

A bitwise combination of the CompensatorOptions values.

Examples

The following code example demonstrates the use of this constructor.

C#
// Create a new clerk using the AccountCompensator class.
Clerk clerk = new Clerk(typeof(AccountCompensator),
  "An account transaction compensator", CompensatorOptions.AllPhases);

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1