BindWithWellKnownFolder static method

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

Implementation

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