Clerk 构造函数
定义
重载
| Clerk(String, String, CompensatorOptions) |
初始化 Clerk 类的新实例。Initializes a new instance of the Clerk class. |
| Clerk(Type, String, CompensatorOptions) |
初始化 Clerk 类的新实例。Initializes a new instance of the Clerk class. |
Clerk(String, String, CompensatorOptions)
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
补偿器的名称。The name of the compensator.
- description
- String
补偿器的说明。The description of the compensator.
- flags
- CompensatorOptions
CompensatorOptions 值的按位组合。A bitwise combination of the CompensatorOptions values.
适用于
Clerk(Type, String, CompensatorOptions)
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
一个表示补偿器的类型。A type that represents the compensator.
- description
- String
补偿器的说明。The description of the compensator.
- flags
- CompensatorOptions
CompensatorOptions 值的按位组合。A bitwise combination of the CompensatorOptions values.
示例
下面的代码示例演示如何使用此构造函数。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)