Edit

Share via


RemotePresence.BeginRemoveTarget(String, AsyncCallback, Object) Method

Definition

Begins an asynchronous operation to unsubscribe to a target.

public:
 IAsyncResult ^ BeginRemoveTarget(System::String ^ uri, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginRemoveTarget (string uri, AsyncCallback userCallback, object state);
member this.BeginRemoveTarget : string * AsyncCallback * obj -> IAsyncResult
Public Function BeginRemoveTarget (uri As String, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

uri
String

The URI of the target to remove.

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 uri is null.

Thrown when uri is an invalid sip URI or a subscription does not exist for this target.

Applies to