Partilhar via


LocalOwnerPresence.BeginDeletePresence Method (ICollection<PresenceCategory>, AsyncCallback, Object)

Begins an asynchronous operation to delete the given list of categories.

Namespace:  Microsoft.Rtc.Collaboration.Presence
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Function BeginDeletePresence ( _
    categoryItems As ICollection(Of PresenceCategory), _
    userCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As LocalOwnerPresence
Dim categoryItems As ICollection(Of PresenceCategory)
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginDeletePresence(categoryItems, _
    userCallback, state)
public IAsyncResult BeginDeletePresence(
    ICollection<PresenceCategory> categoryItems,
    AsyncCallback userCallback,
    Object state
)

Parameters

  • userCallback
    Type: System.AsyncCallback
    The method to be called when the asynchronous operation is completed.
  • state
    Type: System.Object
    A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Return Value

Type: System.IAsyncResult
An IAsyncResult that references the asynchronous operation.

Exceptions

Exception Condition
InvalidOperationException

Thrown when the endpoint is not in the "registered" state, or when the endpoint is an application endpoint and there is an unknown category.

ArgumentNullException

Thrown when categoryItems is null.

ArgumentException

Thrown when categoryItems contains a null CategoryItem or the instance id of a category in categoryItems could not be determined.

See Also

Reference

LocalOwnerPresence Class

LocalOwnerPresence Members

BeginDeletePresence Overload

Microsoft.Rtc.Collaboration.Presence Namespace