CimSession.DeleteInstanceAsync Method (CimInstance)
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(
CimInstance instance
)
public:
CimAsyncStatus^ DeleteInstanceAsync(
CimInstance^ instance
)
member DeleteInstanceAsync :
instance:CimInstance -> CimAsyncStatus
Public Function DeleteInstanceAsync (
instance As CimInstance
) As CimAsyncStatus
Parameters
instance
Type: Microsoft.Management.Infrastructure.CimInstanceA CimInstance object that represents the class name and key of the instance to be deleted on the server.
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