Click or drag to resize

NotesClientDeleteNote Method

Delete a Note from the supplied Note RSN. Any relationship to an Entity will be deleted.

The Note RSN can be fetched from the Web Service Method: Select Notes

Syntax
C#
public Result DeleteNote(
	ManagementGroupRequestOfDeleteNote request
)

Parameters

request
Type: NotesServiceManagementGroupRequestOfDeleteNote

Return Value

Type: Result
Examples
C#
using (var svc = new NotesService.NotesClient())
{
  var request = new NotesService.ManagementGroupRequestOfDeleteNote();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var note = new NotesService.DeleteNote();
  note.Note_RSN = new Guid("84b694f8-f855-43e1-84f2-f82dc34a5332");; // Required Note RSN to be deleted

  request.Value = note;// Required

  NotesService.Result result = svc.DeleteNote(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also