Self.BeginRemovePhone(ContactEndpointType, AsyncCallback, Object) Method

Definition

Removes a phone of the specified type from the user's phones collection.

public:
 IAsyncResult ^ BeginRemovePhone(Microsoft::Lync::Model::ContactEndpointType phoneType, AsyncCallback ^ selfCallback, System::Object ^ state);
public IAsyncResult BeginRemovePhone (Microsoft.Lync.Model.ContactEndpointType phoneType, AsyncCallback selfCallback, object state);
member this.BeginRemovePhone : Microsoft.Lync.Model.ContactEndpointType * AsyncCallback * obj -> IAsyncResult
Public Function BeginRemovePhone (phoneType As ContactEndpointType, selfCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

selfCallback
AsyncCallback
state
Object

Returns

System.IAsyncResult

Remarks

The removed phone is not just deleted from the user's contact card, it no longer appears in the collection of phones that the signed in user sees in the "My phone numbers" collection accessed from the Lync client Lync - Options dialog. A user must enter the phone number again on the Options dialog so that it can be seen on the contact card.

Applies to