Box.V2.Managers.BoxFoldersManager.DeleteSharedLinkAsync C# (CSharp) Méthode

DeleteSharedLinkAsync() public méthode

Used to delete the shared link for the given folder id.
public DeleteSharedLinkAsync ( string id ) : Task
id string
Résultat Task
        public async Task<BoxFolder> DeleteSharedLinkAsync(string id)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.FoldersEndpointUri, id)
                .Method(RequestMethod.Put)
                .Payload(_converter.Serialize(new BoxDeleteSharedLinkRequest()));

            IBoxResponse<BoxFolder> response = await ToResponseAsync<BoxFolder>(request).ConfigureAwait(false);

            return response.ResponseObject;
        }