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

傳回

ManagementPath

ManagementPath,包含認可物件的路徑。A 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

ManagementOperationObserver,用來處理非同步作業的進度和結果。A 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.

傳回

ManagementPath

ManagementPath,包含認可物件的路徑。A 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

ManagementOperationObserver,用來處理非同步作業的進度和結果。A ManagementOperationObserver used to handle the progress and results of the asynchronous operation.

options
PutOptions

PutOptions,用來為認可作業指定其他選項。A 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.

適用於