PersistentChatEndpoint.BeginEstablish(AsyncCallback, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Establish a connection with the Persistent Chat server. This request will be processed asynchronously. See EndEstablish(IAsyncResult) to complete this asynchronous operation.
public:
IAsyncResult ^ BeginEstablish(AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginEstablish (AsyncCallback userCallback, object state);
member this.BeginEstablish : AsyncCallback * obj -> IAsyncResult
Public Function BeginEstablish (userCallback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- userCallback
- AsyncCallback
The method to be invoked when this asynchronous operation completes.
- state
- Object
An object to be passed back to the callback.
Returns
An IAsyncResult that references this operation.
Exceptions
The session encountered an error communicating with the Lync server.
The endpoint is not in a valid state. An endpoint can only be established once and cannot be reused after being terminated.