Begins an asynchronous operation to add a group.

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

Syntax

Visual Basic (Declaration)
Public 
Function 
BeginAddGroup ( _
	
groupName 
As 
String, _
	
groupData 
As 
String, _
	
userCallback 
As 
AsyncCallback, _
	
state 
As 
Object _
) 
As 
IAsyncResult
C#
public 
IAsyncResult 
BeginAddGroup(
	
string 
groupName,
	
string 
groupData,
	
AsyncCallback 
userCallback,
	
Object 
state
)
Visual C++
public:
IAsyncResult^ 
BeginAddGroup(
	
String^ 
groupName, 
	
String^ 
groupData, 
	
AsyncCallback^ 
userCallback, 
	
Object^ 
state
)
JavaScript
function 
beginAddGroup(
groupName, 
groupData, 
userCallback, 
state);

Parameters

groupName
Type: String
Name of the group to be added.
groupData
Type: String
Data to be associated with the group.
userCallback
Type: AsyncCallback
The callback to be invoked when the add group is done.
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
ArgumentNullException Thrown when groupNameis null.
ArgumentException Thrown when groupNameis empty.
InvalidOperationException Thrown when the subscription state is not idle or subscribed.

See Also