ManagementObject.Put 方法

定义

提交对对象所做的更改。Commits the changes to the object.

重载

Put()

提交对对象所做的更改。Commits the changes to the object.

Put(ManagementOperationObserver)

异步提交对对象所做的更改。Commits the changes to the object, asynchronously.

Put(PutOptions)

提交对对象所做的更改。Commits the changes to the object.

Put(ManagementOperationObserver, PutOptions)

使用指定的选项异步提交对对象所做的更改。Commits the changes to the object asynchronously and using the specified options.

Put()

提交对对象所做的更改。Commits the changes to the object.

public:
 System::Management::ManagementPath ^ Put();
public System.Management.ManagementPath Put ();
member this.Put : unit -> System.Management.ManagementPath
Public Function Put () As ManagementPath

返回

包含已提交对象的路径的 ManagementPathA ManagementPath containing the path to the committed 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.

Put(ManagementOperationObserver)

异步提交对对象所做的更改。Commits the changes to the object, asynchronously.

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

参数

watcher
ManagementOperationObserver

用于处理异步操作的进度和结果的 ManagementOperationObserverA ManagementOperationObserver used to handle the progress and results of the asynchronous 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.

Put(PutOptions)

提交对对象所做的更改。Commits the changes to the object.

public:
 System::Management::ManagementPath ^ Put(System::Management::PutOptions ^ options);
public System.Management.ManagementPath Put (System.Management.PutOptions options);
member this.Put : System.Management.PutOptions -> System.Management.ManagementPath
Public Function Put (options As PutOptions) As ManagementPath

参数

options
PutOptions

有关如何提交更改的选项。The options for how to commit the changes.

返回

包含已提交对象的路径的 ManagementPathA ManagementPath containing the path to the committed 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.

Put(ManagementOperationObserver, PutOptions)

使用指定的选项异步提交对对象所做的更改。Commits the changes to the object asynchronously and using the specified options.

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

参数

watcher
ManagementOperationObserver

用于处理异步操作的进度和结果的 ManagementOperationObserverA ManagementOperationObserver used to handle the progress and results of the asynchronous operation.

options
PutOptions

用于为提交操作指定附加选项的 PutOptionsA PutOptions used to specify additional options for the commit 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.

适用于