Sdílet prostřednictvím


Clerk Konstruktory

Definice

Inicializuje novou instanci Clerk třídy .

Přetížení

Clerk(String, String, CompensatorOptions)

Inicializuje novou instanci Clerk třídy .

Clerk(Type, String, CompensatorOptions)

Inicializuje novou instanci Clerk třídy .

Clerk(String, String, CompensatorOptions)

Inicializuje novou instanci Clerk třídy .

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)

Parametry

compensator
String

Název kompenzátoru.

description
String

Popis kompenzátoru.

flags
CompensatorOptions

Bitové kombinace CompensatorOptions hodnot.

Platí pro

Clerk(Type, String, CompensatorOptions)

Inicializuje novou instanci Clerk třídy .

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)

Parametry

compensator
Type

Typ, který představuje kompenzátor.

description
String

Popis kompenzátoru.

flags
CompensatorOptions

Bitové kombinace CompensatorOptions hodnot.

Příklady

Následující příklad kódu ukazuje použití tohoto konstruktoru.

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

Platí pro