コード例 #1
0
        /// <summary>
        /// <para>Begins an asynchronous send to the remove folder member route.</para>
        /// </summary>
        /// <param name="sharedFolderId">The ID for the shared folder.</param>
        /// <param name="member">The member to remove from the folder. Only the <see
        /// cref="MemberSelector.DropboxId" /> may be set at this time.</param>
        /// <param name="leaveACopy">If true, the removed user will keep their copy of the
        /// folder after it's unshared, assuming it was mounted. Otherwise, it will be removed
        /// from their Dropbox. Also, this must be set to false when kicking a group.</param>
        /// <param name="callback">The method to be called when the asynchronous send is
        /// completed.</param>
        /// <param name="callbackState">A user provided object that distinguished this send
        /// from other send requests.</param>
        /// <returns>An object that represents the asynchronous send request.</returns>
        public sys.IAsyncResult BeginRemoveFolderMember(string sharedFolderId,
                                                        MemberSelector member,
                                                        bool leaveACopy,
                                                        sys.AsyncCallback callback,
                                                        object callbackState = null)
        {
            var removeFolderMemberArg = new RemoveFolderMemberArg(sharedFolderId,
                                                                  member,
                                                                  leaveACopy);

            return this.BeginRemoveFolderMember(removeFolderMemberArg, callback, callbackState);
        }
コード例 #2
0
        /// <summary>
        /// <para>Begins an asynchronous send to the remove folder member route.</para>
        /// </summary>
        /// <param name="removeFolderMemberArg">The request parameters.</param>
        /// <param name="callback">The method to be called when the asynchronous send is
        /// completed.</param>
        /// <param name="state">A user provided object that distinguished this send from other
        /// send requests.</param>
        /// <returns>An object that represents the asynchronous send request.</returns>
        public sys.IAsyncResult BeginRemoveFolderMember(RemoveFolderMemberArg removeFolderMemberArg, sys.AsyncCallback callback, object state = null)
        {
            var task = this.RemoveFolderMemberAsync(removeFolderMemberArg);

            return enc.Util.ToApm(task, callback, state);
        }
コード例 #3
0
        /// <summary>
        /// <para>Allows an owner or editor (if the ACL update policy allows) of a shared
        /// folder to remove another member.</para>
        /// <para>Warning: This endpoint is in beta and is subject to minor but possibly
        /// backwards-incompatible changes.</para>
        /// </summary>
        /// <param name="sharedFolderId">The ID for the shared folder.</param>
        /// <param name="member">The member to remove from the folder. Only the <see
        /// cref="MemberSelector.DropboxId" /> may be set at this time.</param>
        /// <param name="leaveACopy">If true, the removed user will keep their copy of the
        /// folder after it's unshared, assuming it was mounted. Otherwise, it will be removed
        /// from their Dropbox. Also, this must be set to false when kicking a group.</param>
        /// <returns>The task that represents the asynchronous send operation. The TResult
        /// parameter contains the response from the server.</returns>
        /// <exception cref="Dropbox.Api.ApiException{RemoveFolderMemberError}">Thrown if there
        /// is an error processing the request; This will contain a <see
        /// cref="RemoveFolderMemberError"/>.</exception>
        public t.Task<Async.LaunchEmptyResult> RemoveFolderMemberAsync(string sharedFolderId,
                                                                       MemberSelector member,
                                                                       bool leaveACopy)
        {
            var removeFolderMemberArg = new RemoveFolderMemberArg(sharedFolderId,
                                                                  member,
                                                                  leaveACopy);

            return this.RemoveFolderMemberAsync(removeFolderMemberArg);
        }
コード例 #4
0
 /// <summary>
 /// <para>Allows an owner or editor (if the ACL update policy allows) of a shared
 /// folder to remove another member.</para>
 /// <para>Warning: This endpoint is in beta and is subject to minor but possibly
 /// backwards-incompatible changes.</para>
 /// </summary>
 /// <param name="removeFolderMemberArg">The request parameters</param>
 /// <returns>The task that represents the asynchronous send operation. The TResult
 /// parameter contains the response from the server.</returns>
 /// <exception cref="Dropbox.Api.ApiException{RemoveFolderMemberError}">Thrown if there
 /// is an error processing the request; This will contain a <see
 /// cref="RemoveFolderMemberError"/>.</exception>
 public t.Task<Async.LaunchEmptyResult> RemoveFolderMemberAsync(RemoveFolderMemberArg removeFolderMemberArg)
 {
     return this.Transport.SendRpcRequestAsync<RemoveFolderMemberArg, Async.LaunchEmptyResult, RemoveFolderMemberError>(removeFolderMemberArg, "api", "/sharing/remove_folder_member", RemoveFolderMemberArg.Encoder, Async.LaunchEmptyResult.Decoder, RemoveFolderMemberError.Decoder);
 }