Edytuj

Udostępnij za pośrednictwem


PartBuilder.SetCreationPolicy(CreationPolicy) Method

Definition

Specifies the creation policy for matching types.

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

Parameters

creationPolicy
CreationPolicy

The creation policy.

Returns

The current object, to allow chaining.

Applies to