MessageQueueEnumerator.Close Método

Definição

Libera os recursos associados ao enumerador.Frees the resources associated with the enumerator.

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

Comentários

O sistema operacional retém um identificador aberto, LocatorHandle , para o enumerador de fila durante o tempo de vida do cursor.The operating system retains an open handle, LocatorHandle, to the queue enumerator during the lifetime of the cursor. Quando você terminar de trabalhar com o enumerador, chame Close para liberar os recursos associados ao identificador.When you finish working with the enumerator, call Close to release the resources associated with the handle.

Aplica-se a

Confira também