Edit

Share via


ContactGroupServices.BeginAddGroup Method

Definition

Begins an asynchronous operation to add a group.

public:
 IAsyncResult ^ BeginAddGroup(System::String ^ groupName, System::String ^ groupData, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginAddGroup (string groupName, string groupData, AsyncCallback userCallback, object state);
member this.BeginAddGroup : string * string * AsyncCallback * obj -> IAsyncResult
Public Function BeginAddGroup (groupName As String, groupData As String, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

groupName
String

Name of the group to be added.

groupData
String

Data to be associated with the group.

userCallback
AsyncCallback

The callback to be invoked when the add group is done.

state
Object

A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Returns

An IAsyncResult that references the asynchronous operation.

Exceptions

Thrown when groupName is null.

Thrown when groupName is empty.

Thrown when the subscription state is not idle or subscribed.

Applies to