ManagementObjectCollection.Dispose 方法

定義

釋出與這個物件相關聯的資源。Releases resources associated with this object. 在呼叫這個方法之後,嘗試使用這個物件時,會導致 ObjectDisposedException 被擲回。After this method has been called, an attempt to use this object will result in an ObjectDisposedException being thrown.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

實作

備註

.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.

適用於

另請參閱