Share via


ReflectionModelServices.IsDisposalRequired Method

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

Updated: December 2010

Determines whether the specified part requires disposal.

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

Syntax

'Declaration
Public Shared Function IsDisposalRequired ( _
    partDefinition As ComposablePartDefinition _
) As Boolean
public static bool IsDisposalRequired(
    ComposablePartDefinition partDefinition
)

Parameters

Return Value

Type: System.Boolean
true if the part requires disposal; otherwise, false.

Exceptions

Exception Condition
ArgumentException

partDefinition is 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.

Change History

Date

History

Reason

December 2010

Added exception.

Content bug fix.