Delete method
Deletes the user configuration. Calling this method results in a call to EWS.
Implementation
Future<void> Delete() async {
if (_isNew) {
throw InvalidOperationException(
"This user configuration object can't be deleted because it's never been saved.",
);
} else {
// service.DeleteUserConfiguration(this.name, this.parentFolderId)
EwsUtilities.ValidateParam(_name, "name");
EwsUtilities.ValidateParam(_parentFolderId, "parentFolderId");
DeleteUserConfigurationRequest request = DeleteUserConfigurationRequest(
_service,
);
request.Name = _name;
request.ParentFolderId = _parentFolderId;
await request.Execute();
}
}