ContactGroupServices.BeginAddGroup Method
Begins an asynchronous operation to add a group.
Namespace: Microsoft.Rtc.Collaboration.ContactsGroups
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function BeginAddGroup ( _
groupName As String, _
groupData As String, _
userCallback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim instance As ContactGroupServices
Dim groupName As String
Dim groupData As String
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginAddGroup(groupName, _
groupData, userCallback, state)
public IAsyncResult BeginAddGroup(
string groupName,
string groupData,
AsyncCallback userCallback,
Object state
)
Parameters
- groupName
Type: System.String
Name of the group to be added.
- groupData
Type: System.String
Data to be associated with the group.
- userCallback
Type: System.AsyncCallback
The callback to be invoked when the add group is done.
- 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 |
---|---|
ArgumentNullException | Thrown when groupName is null. |
ArgumentException | Thrown when groupName is empty. |
InvalidOperationException | Thrown when the subscription state is not idle or subscribed. |