Partager via


Clerk Constructeurs

Définition

Initialise une nouvelle instance de la classe Clerk.

Surcharges

Clerk(String, String, CompensatorOptions)

Initialise une nouvelle instance de la classe Clerk.

Clerk(Type, String, CompensatorOptions)

Initialise une nouvelle instance de la classe Clerk.

Clerk(String, String, CompensatorOptions)

Initialise une nouvelle instance de la classe Clerk.

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)

Paramètres

compensator
String

Nom du compensateur.

description
String

Description du compensateur.

flags
CompensatorOptions

Combinaison d'opérations de bits des valeurs CompensatorOptions.

S’applique à

Clerk(Type, String, CompensatorOptions)

Initialise une nouvelle instance de la classe Clerk.

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)

Paramètres

compensator
Type

Type qui représente le compensateur.

description
String

Description du compensateur.

flags
CompensatorOptions

Combinaison d'opérations de bits des valeurs CompensatorOptions.

Exemples

L’exemple de code suivant illustre l’utilisation de ce constructeur.

// 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)

S’applique à