ReflectionModelServices.IsDisposalRequired Method (ComposablePartDefinition)

 

Determines whether the specified part requires disposal.

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

public static bool IsDisposalRequired(
	ComposablePartDefinition partDefinition
)

Parameters

partDefinition
Type: System.ComponentModel.Composition.Primitives.ComposablePartDefinition

The part to examine.

Return Value

Type: System.Boolean

true if the part requires disposal; otherwise, false.

Exception Condition
ArgumentException

partDefinition is null.

.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Return to top
Show: