Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetCreationPolicy Method

PartBuilder.SetCreationPolicy Method

.NET Framework 4.6 and 4.5

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


Type: System.ComponentModel.Composition.CreationPolicy

The creation policy.

Return Value

Type: System.ComponentModel.Composition.Registration.PartBuilder
The current object, to allow chaining.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft