public DeleteEmailAliasAsync ( string userId, string emailAliasId ) : Task |
||
userId | string | The user identifier. |
emailAliasId | string | The email alias identifier. |
Результат | Task |
public async Task<bool> DeleteEmailAliasAsync(string userId, string emailAliasId)
{
BoxRequest request = new BoxRequest(_config.UserEndpointUri, string.Format(Constants.DeleteEmailAliasPathString, userId, emailAliasId))
.Method(RequestMethod.Delete);
IBoxResponse<BoxUser> response = await ToResponseAsync<BoxUser>(request).ConfigureAwait(false);
return response.Status == ResponseStatus.Success;
}