BindWithWellKnownFolder static method

Future<TasksFolder> BindWithWellKnownFolder(
  1. ExchangeService service,
  2. WellKnownFolderName name
)
override
Binds to an existing tasks folder and loads its first class properties. Calling this method results in a call to EWS. The service to use to bind to the tasks folder. The name of the tasks folder to bind to.

Implementation

static Future<TasksFolder> BindWithWellKnownFolder(
    ExchangeService service, WellKnownFolderName name) {
  return TasksFolder.BindWithFolderIdAndPropertySet(
      service,
      new FolderId.fromWellKnownFolder(name),
      PropertySet.FirstClassProperties);
}