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)

适用于