PartCreationPolicyAttribute(CreationPolicy) 构造函数

定义

使用指定的创建策略初始化 PartCreationPolicyAttribute 类的新实例。

public:
 PartCreationPolicyAttribute(System::ComponentModel::Composition::CreationPolicy creationPolicy);
public PartCreationPolicyAttribute (System.ComponentModel.Composition.CreationPolicy creationPolicy);
new System.ComponentModel.Composition.PartCreationPolicyAttribute : System.ComponentModel.Composition.CreationPolicy -> System.ComponentModel.Composition.PartCreationPolicyAttribute
Public Sub New (creationPolicy As CreationPolicy)

参数

creationPolicy
CreationPolicy

要使用的创建策略。

适用于