共用方式為


PartBuilder.SetCreationPolicy(CreationPolicy) 方法

定義

指定相符型別的建立原則。

public:
 System::ComponentModel::Composition::Registration::PartBuilder ^ SetCreationPolicy(System::ComponentModel::Composition::CreationPolicy creationPolicy);
public System.ComponentModel.Composition.Registration.PartBuilder SetCreationPolicy (System.ComponentModel.Composition.CreationPolicy creationPolicy);
member this.SetCreationPolicy : System.ComponentModel.Composition.CreationPolicy -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function SetCreationPolicy (creationPolicy As CreationPolicy) As PartBuilder

參數

creationPolicy
CreationPolicy

建立原則。

傳回

目前的物件,用於允許鏈結。

適用於