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.

public:
 Clerk(System::String ^ compensator, System::String ^ description, System::EnterpriseServices::CompensatingResourceManager::CompensatorOptions flags);
public Clerk (string compensator, string description, System.EnterpriseServices.CompensatingResourceManager.CompensatorOptions flags);
new System.EnterpriseServices.CompensatingResourceManager.Clerk : string * string * System.EnterpriseServices.CompensatingResourceManager.CompensatorOptions -> System.EnterpriseServices.CompensatingResourceManager.Clerk
Public Sub New (compensator As String, description As String, flags As CompensatorOptions)

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

Clerk(Type, String, CompensatorOptions)

Initializes a new instance of the Clerk class.

public:
 Clerk(Type ^ compensator, System::String ^ description, System::EnterpriseServices::CompensatingResourceManager::CompensatorOptions flags);
public Clerk (Type compensator, string description, System.EnterpriseServices.CompensatingResourceManager.CompensatorOptions flags);
new System.EnterpriseServices.CompensatingResourceManager.Clerk : Type * string * System.EnterpriseServices.CompensatingResourceManager.CompensatorOptions -> System.EnterpriseServices.CompensatingResourceManager.Clerk
Public Sub New (compensator As Type, description As String, flags As CompensatorOptions)

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.

// Create a new clerk using the AccountCompensator class.
Clerk^ clerk = gcnew Clerk(AccountCompensator::typeid,
    "An account transaction compensator", CompensatorOptions::AllPhases);
// Create a new clerk using the AccountCompensator class.
Clerk clerk = new Clerk(typeof(AccountCompensator),
  "An account transaction compensator", CompensatorOptions.AllPhases);
' Create a new clerk using the AccountCompensator class.
Dim clerk As New Clerk(GetType(AccountCompensator), "An account transaction compensator", CompensatorOptions.AllPhases)

Applies to