Bind static method

Future<Folder> Bind(
  1. ExchangeService service,
  2. FolderId id
)
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 Id of the folder to bind to.

Implementation

static Future<Folder> Bind(ExchangeService service, FolderId id) async {
  return await Folder.BindWithPropertySet(
      service, id, PropertySet.FirstClassProperties);
}