Udostępnij za pośrednictwem


ComposablePartDefinition.CreatePart Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates a new instance of a part that the ComposablePartDefinition describes.

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

Syntax

'Declaration
Public MustOverride Function CreatePart As ComposablePart
public abstract ComposablePart CreatePart()

Remarks

Derived types that override this method should return a new instance of a ComposablePart object every time that the method is invoked and should never return nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.