ImportBuilder.RequiredCreationPolicy(CreationPolicy) 方法

定义

指定导入需要的创建策略。

public:
 System::ComponentModel::Composition::Registration::ImportBuilder ^ RequiredCreationPolicy(System::ComponentModel::Composition::CreationPolicy requiredCreationPolicy);
public System.ComponentModel.Composition.Registration.ImportBuilder RequiredCreationPolicy (System.ComponentModel.Composition.CreationPolicy requiredCreationPolicy);
member this.RequiredCreationPolicy : System.ComponentModel.Composition.CreationPolicy -> System.ComponentModel.Composition.Registration.ImportBuilder
Public Function RequiredCreationPolicy (requiredCreationPolicy As CreationPolicy) As ImportBuilder

参数

requiredCreationPolicy
CreationPolicy

导入需要的创建策略。

返回

允许链接的当前对象。

适用于