public GroupInfo CreateGroup(
     string name, string code, RichTextInfo desc, Identifier grpTypeId, Identifier ownerId)
 {
     CreateGroupRequest request = new CreateGroupRequest() {
         Name = name,
         Code = code,
         Description = desc,
         GroupTypeId = grpTypeId,
         OwnerOrgUnitId = ownerId
     };
     CreateGroupResponse response = CallWebService<
         IOrgUnitManagementServicev1_0, CreateGroupRequest, CreateGroupResponse>(
         m_service1_0, request, ( s, q ) => s.CreateGroup( q ) );
     return response.Group;
 }
Example #2
0
 /// <remarks/>
 public void CreateGroupAsync(CreateGroupRequest CreateGroupRequest)
 {
     this.CreateGroupAsync(CreateGroupRequest, null);
 }
Example #3
0
 /// <remarks/>
 public void CreateGroupAsync(CreateGroupRequest CreateGroupRequest, object userState)
 {
     if ((this.CreateGroupOperationCompleted == null)) {
         this.CreateGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateGroupOperationCompleted);
     }
     this.InvokeAsync("CreateGroup", new object[] {
                 CreateGroupRequest}, this.CreateGroupOperationCompleted, userState);
 }
Example #4
0
 /// <remarks/>
 public System.IAsyncResult BeginCreateGroup(CreateGroupRequest CreateGroupRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateGroup", new object[] {
                 CreateGroupRequest}, callback, asyncState);
 }