public virtual IAsyncResult BeginClose(
bool abruptClose,
AsyncCallback callback,
Object state
)Public Overridable Function BeginClose (
abruptClose As Boolean,
callback As AsyncCallback,
state As Object
) As IAsyncResultpublic:
virtual IAsyncResult^ BeginClose(
bool abruptClose,
AsyncCallback^ callback,
Object^ state
)abstract BeginClose :
abruptClose : bool *
callback : AsyncCallback *
state : Object -> IAsyncResult
override BeginClose :
abruptClose : bool *
callback : AsyncCallback *
state : Object -> IAsyncResult If abruptClose is true then the session will be closed immediately by closing the control socket without sending the QUIT command, otherwise the session will be closed by sending a QUIT command before closing the socket.
You can create a callback method that implements the AsyncCallback delegate and pass its name to the BeginClose method. The state argument may be used to pass in data that will be passed to the callback method.
For more information please refer to the synchronous version of this method, Close.