Пример #1
0
 /// <remarks/>
 public void RemoveUserFromGroupAsync(RemoveUserFromGroupRequest RemoveUserFromGroupRequest) {
     this.RemoveUserFromGroupAsync(RemoveUserFromGroupRequest, null);
 }
Пример #2
0
 /// <remarks/>
 public void RemoveUserFromGroupAsync(RemoveUserFromGroupRequest RemoveUserFromGroupRequest, object userState) {
     if ((this.RemoveUserFromGroupOperationCompleted == null)) {
         this.RemoveUserFromGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveUserFromGroupOperationCompleted);
     }
     this.InvokeAsync("RemoveUserFromGroup", new object[] {
                 RemoveUserFromGroupRequest}, this.RemoveUserFromGroupOperationCompleted, userState);
 }
Пример #3
0
        static bool removeUserFromGroup(string url, Credentials c, string userId, string groupId)
        {
            Console.WriteLine("Removing user from group...");

            ArticulateOnline ao = new ArticulateOnline();
            ao.Url = url;
            RemoveUserFromGroupRequest request = new RemoveUserFromGroupRequest();
            request.Credentials = c;
            request.UserID = userId;
            request.GroupID = groupId;

            return ao.RemoveUserFromGroup(request).Success;
        }