Partager via


CimMethodParametersCollection.Dispose Method (Boolean)

 

Releases resources

Namespace:   Microsoft.Management.Infrastructure
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Syntax

protected virtual void Dispose(
    bool disposing
)
protected:
virtual void Dispose(
    bool disposing
)
abstract Dispose : 
        disposing:bool -> unit
override Dispose : 
        disposing:bool -> unit
Protected Overridable Sub Dispose (
    disposing As Boolean
)

Parameters

  • disposing
    Type: System.Boolean

    If true, the method has been invoked from user code, or if false, from the finalizer.

Remarks

This method executes in two distinct contexts: when called directly or indirectly by a user’s code, or when called by the runtime from within the finalizer.

When called from a user’s code, managed and unmanaged resources can be released, but when called from the finalizer, only unmanaged resources can be disposed, and other objects should not be referenced.

See Also

Dispose Overload
CimMethodParametersCollection Class
Microsoft.Management.Infrastructure Namespace

Return to top