Compartir a través de


CimSession.DeleteInstanceAsync Method (String, CimInstance, CimOperationOptions)

 

Asynchronously deletes an instance on the server represented by the session.

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

Syntax

public CimAsyncStatus DeleteInstanceAsync(
    string namespaceName,
    CimInstance instance,
    CimOperationOptions options
)
public:
CimAsyncStatus^ DeleteInstanceAsync(
    String^ namespaceName,
    CimInstance^ instance,
    CimOperationOptions^ options
)
member DeleteInstanceAsync : 
        namespaceName:string *
        instance:CimInstance *
        options:CimOperationOptions -> CimAsyncStatus
Public Function DeleteInstanceAsync (
    namespaceName As String,
    instance As CimInstance,
    options As CimOperationOptions
) As CimAsyncStatus

Parameters

  • namespaceName
    Type: System.String

    A null-terminated string that contains the optional namespace name to carry out the operation. If none is specified, the server will pick a default. The namespace cannot include a computer name. It can only be in the form of a namespace name separated by a slash mark character (/). For example, the following would be a valid namespaceName value: root/cimv2.

Return Value

Type: Microsoft.Management.Infrastructure.Generic.CimAsyncStatus

A CimAsyncStatus object that represents the status of the CimSession object creation.

See Also

DeleteInstanceAsync Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top