PartBuilder.SetCreationPolicy Method (CreationPolicy)

.NET Framework (current version)
 

Specifies the creation policy for matching types.

Namespace:   System.ComponentModel.Composition.Registration
Assembly:  System.ComponentModel.Composition.Registration (in System.ComponentModel.Composition.Registration.dll)

public PartBuilder SetCreationPolicy(
	CreationPolicy creationPolicy
)

Parameters

creationPolicy
Type: System.ComponentModel.Composition.CreationPolicy

The creation policy.

Return Value

Type: System.ComponentModel.Composition.Registration.PartBuilder

The current object, to allow chaining.

.NET Framework
Available since 4.5
Return to top
Show: