PublishSubscribeSession.BeginSubscribe(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.
Begins an asynchronous operation to subscribe to the presence session.
public:
virtual IAsyncResult ^ BeginSubscribe(AsyncCallback ^ userCallback, System::Object ^ state);
public virtual IAsyncResult BeginSubscribe (AsyncCallback userCallback, object state);
abstract member BeginSubscribe : AsyncCallback * obj -> IAsyncResult
override this.BeginSubscribe : AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginSubscribe (userCallback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- userCallback
- AsyncCallback
The method to be called when the asynchronous operation is completed.
- state
- Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.
Returns
An IAsyncResult that references the asynchronous operation.
Exceptions
Thrown when the subscription is not in a valid state.
Remarks
UCMA allows subscription to be reused. Hence, the application can re-subscribe to the same subscription after it has been unsubscribed.