コード例 #1
0
 public GroupTypeInfo CreateGroupType(
     string name, RichTextInfo desc, Identifier ownerId,
     bool autoEnroll, bool randomEnroll, int numEnroll, GroupEnrollmentStyle enrollStyle)
 {
     CreateGroupTypeRequest request = new CreateGroupTypeRequest() {
         Name = name,
         Description = desc,
         OwnerOrgUnitId = ownerId,
         IsAutoEnroll = autoEnroll,
         RandomizeEnrollments = randomEnroll,
         EnrollmentQuantity = numEnroll,
         EnrollmentStyle = enrollStyle
     };
     CreateGroupTypeResponse response = CallWebService<
         IOrgUnitManagementServicev1_0, CreateGroupTypeRequest, CreateGroupTypeResponse>(
         m_service1_0, request, ( s, q ) => s.CreateGroupType( q ) );
     return response.GroupType;
 }
コード例 #2
0
ファイル: ProxyCode.cs プロジェクト: Brightspace/d2lws-sdk
 /// <remarks/>
 public void CreateGroupTypeAsync(CreateGroupTypeRequest CreateGroupTypeRequest)
 {
     this.CreateGroupTypeAsync(CreateGroupTypeRequest, null);
 }
コード例 #3
0
ファイル: ProxyCode.cs プロジェクト: Brightspace/d2lws-sdk
 /// <remarks/>
 public void CreateGroupTypeAsync(CreateGroupTypeRequest CreateGroupTypeRequest, object userState)
 {
     if ((this.CreateGroupTypeOperationCompleted == null)) {
         this.CreateGroupTypeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateGroupTypeOperationCompleted);
     }
     this.InvokeAsync("CreateGroupType", new object[] {
                 CreateGroupTypeRequest}, this.CreateGroupTypeOperationCompleted, userState);
 }
コード例 #4
0
ファイル: ProxyCode.cs プロジェクト: Brightspace/d2lws-sdk
 /// <remarks/>
 public System.IAsyncResult BeginCreateGroupType(CreateGroupTypeRequest CreateGroupTypeRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateGroupType", new object[] {
                 CreateGroupTypeRequest}, callback, asyncState);
 }