ManagementObject.Delete 方法

定义

删除对象。Deletes the object.

重载

Delete()

删除对象。Deletes the object.

Delete(DeleteOptions)

删除对象。Deletes the object.

Delete(ManagementOperationObserver)

删除对象。Deletes the object.

Delete(ManagementOperationObserver, DeleteOptions)

删除对象。Deletes the object.

Delete()

删除对象。Deletes the object.

public:
 void Delete();
public void Delete ();
member this.Delete : unit -> unit
Public Sub Delete ()

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

Delete(DeleteOptions)

删除对象。Deletes the object.

public:
 void Delete(System::Management::DeleteOptions ^ options);
public void Delete (System.Management.DeleteOptions options);
member this.Delete : System.Management.DeleteOptions -> unit
Public Sub Delete (options As DeleteOptions)

参数

options
DeleteOptions

有关如何删除对象的选项。The options for how to delete the object.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

Delete(ManagementOperationObserver)

删除对象。Deletes the object.

public:
 void Delete(System::Management::ManagementOperationObserver ^ watcher);
public void Delete (System.Management.ManagementOperationObserver watcher);
member this.Delete : System.Management.ManagementOperationObserver -> unit
Public Sub Delete (watcher As ManagementOperationObserver)

参数

watcher
ManagementOperationObserver

将接收操作结果的对象。The object that will receive the results of the operation.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

Delete(ManagementOperationObserver, DeleteOptions)

删除对象。Deletes the object.

public:
 void Delete(System::Management::ManagementOperationObserver ^ watcher, System::Management::DeleteOptions ^ options);
public void Delete (System.Management.ManagementOperationObserver watcher, System.Management.DeleteOptions options);
member this.Delete : System.Management.ManagementOperationObserver * System.Management.DeleteOptions -> unit
Public Sub Delete (watcher As ManagementOperationObserver, options As DeleteOptions)

参数

watcher
ManagementOperationObserver

将接收操作结果的对象。The object that will receive the results of the operation.

options
DeleteOptions

有关如何删除对象的选项。The options for how to delete the object.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

适用于