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

Visual Basic (Declaration)
Public 
Function 
BeginDeletePresence ( _
	
categoryItems 
As 
ICollection(
Of 

PresenceCategory), _
	
userCallback 
As 
AsyncCallback, _
	
state 
As 
Object _
) 
As 
IAsyncResult
C#
public 
IAsyncResult 
BeginDeletePresence(
	
ICollection<

PresenceCategory> 
categoryItems,
	
AsyncCallback 
userCallback,
	
Object 
state
)
Visual C++
public:
IAsyncResult^ 
BeginDeletePresence(
	
ICollection<

PresenceCategory^>^ 
categoryItems, 
	
AsyncCallback^ 
userCallback, 
	
Object^ 
state
)
JavaScript
function 
beginDeletePresence(
categoryItems, 
userCallback, 
state);

Parameters

categoryItems
Type: ICollection < (Of < ( PresenceCategory > ) > )
The list of categoryItems to be deleted.
userCallback
Type: AsyncCallback
The method to be called when the asynchronous operation is completed.
state
Type: Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Return Value

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 categoryItemsis null.
ArgumentException Thrown when categoryItemscontains a null CategoryItem.
XmlException Thrown when there is a bad XML in the grammar or a category in categoryItemscould not be transformed.

See Also