PublishSubscribeSession.BeginUnsubscribe(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 unsubscribe the underlying subscription.
public:
virtual IAsyncResult ^ BeginUnsubscribe(AsyncCallback ^ userCallback, System::Object ^ state);
public virtual IAsyncResult BeginUnsubscribe (AsyncCallback userCallback, object state);
abstract member BeginUnsubscribe : AsyncCallback * obj -> IAsyncResult
override this.BeginUnsubscribe : AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginUnsubscribe (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.
Remarks
If no underlying subscription exists, then this operation completes immediately.