BindWithWellKnownFolder static method

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

Implementation

static Future<Folder> BindWithWellKnownFolder(
  ExchangeService service,
  enumerations.WellKnownFolderName name,
) {
  return Folder.BindWithPropertySet(
    service,
    FolderId.fromWellKnownFolder(name),
    PropertySet.FirstClassProperties,
  );
}