ReflectionModelServices.IsDisposalRequired(ComposablePartDefinition) 方法

定义

确定指定的部件是否要求释放。

public:
 static bool IsDisposalRequired(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ partDefinition);
public static bool IsDisposalRequired (System.ComponentModel.Composition.Primitives.ComposablePartDefinition partDefinition);
static member IsDisposalRequired : System.ComponentModel.Composition.Primitives.ComposablePartDefinition -> bool
Public Shared Function IsDisposalRequired (partDefinition As ComposablePartDefinition) As Boolean

参数

partDefinition
ComposablePartDefinition

要检查的部件。

返回

如果部件要求释放,则为 true;否则为 false

例外

partDefinitionnull

适用于