// ----------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ----------------------------------------------------------------------- using System; using System.ComponentModel.Composition.Hosting; using System.ComponentModel.Composition.Primitives; namespace System.ComponentModel.Composition { /// /// Option placed on a type that controls when the creates /// a new instance of a . /// public enum CreationPolicy : int { /// /// Let the choose the most appropriate /// for the part given the current context. This is the default , with /// the choosing by default /// unless the or importer requests . /// Any = 0, /// /// A single shared instance of the associated will be created /// by the and shared by all requestors. /// Shared = 1, /// /// A new non-shared instance of the associated will be created /// by the for every requestor. /// NonShared = 2, } }