CimSession.DeleteInstance Method (String, CimInstance)
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 void DeleteInstance(
string namespaceName,
CimInstance instance
)
public:
void DeleteInstance(
String^ namespaceName,
CimInstance^ instance
)
member DeleteInstance :
namespaceName:string *
instance:CimInstance -> unit
Public Sub DeleteInstance (
namespaceName As String,
instance As CimInstance
)
Parameters
namespaceName
Type: System.StringA 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.
instance
Type: Microsoft.Management.Infrastructure.CimInstanceA CimInstance object that represents the class name and key of the instance to be deleted on the server.
See Also
DeleteInstance Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace
Return to top