BindToFolder method

Future<Folder> BindToFolder(
  1. FolderId folderId,
  2. PropertySet propertySet
)
Binds to a folder. The folder id. The property set.

Implementation

Future<Folder> BindToFolder(
    FolderId folderId, PropertySet propertySet) async {
//            EwsUtilities.ValidateParam(folderId, "folderId");
//            EwsUtilities.ValidateParam(propertySet, "propertySet");

  ServiceResponseCollection<GetFolderResponse> responses = await this
      .InternalBindToFolders(
          [folderId], propertySet, ServiceErrorHandling.ThrowOnError);

  return responses[0].Folder;
}