Compartilhar via


ManagementPack.Dispose Method (Boolean)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim disposing As Boolean

Me.Dispose(disposing)

Syntax

'Declaration
Protected Overrides Sub Dispose ( _
    disposing As Boolean _
)
protected override void Dispose (
    bool disposing
)
protected:
virtual void Dispose (
    bool disposing
) override
protected void Dispose (
    boolean disposing
)
protected override function Dispose (
    disposing : boolean
)

Parameters

  • disposing
    Indicates how the method was called.

Remarks

This method executes in two distinct scenarios. If the value of disposing is true, the method has been called directly or indirectly by the user code. Managed and unmanaged resources can be disposed. If the value of disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ManagementPack Class
ManagementPack Members
Microsoft.EnterpriseManagement.Configuration Namespace