MessageQueueEnumerator.Close 方法

定義

釋放與列舉值相關的資源。

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

備註

操作系統會在數據指標的存留期期間,將開啟的句柄 LocatorHandle保留至佇列列舉值。 當您完成使用列舉值時,請呼叫 Close 以釋放與句柄相關聯的資源。

適用於

另請參閱