共用方式為


Clerk 建構函式

定義

初始化 Clerk 類別的新執行個體。

多載

Clerk(String, String, CompensatorOptions)

初始化 Clerk 類別的新執行個體。

Clerk(Type, String, CompensatorOptions)

初始化 Clerk 類別的新執行個體。

Clerk(String, String, CompensatorOptions)

初始化 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)

參數

compensator
String

補償器的名稱。

description
String

補償器的描述。

flags
CompensatorOptions

CompensatorOptions 值的位元組合。

適用於

Clerk(Type, String, CompensatorOptions)

初始化 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)

參數

compensator
Type

表示補償器的類型。

description
String

補償器的描述。

flags
CompensatorOptions

CompensatorOptions 值的位元組合。

範例

下列程式代碼範例示範這個建構函式的使用方式。

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

適用於