BindToFolderGeneric<TFolder extends Folder> method
Future<TFolder>
BindToFolderGeneric<TFolder extends Folder>(
- FolderId folderId,
- PropertySet propertySet
Implementation
Future<TFolder> BindToFolderGeneric<TFolder extends Folder>(
FolderId folderId, PropertySet propertySet) async {
Folder? result = await this.BindToFolder(folderId, propertySet);
if (result is TFolder) {
return result;
} else {
throw new ServiceLocalException("""string.Format(
Strings.FolderTypeNotCompatible,
result.GetType().Name,
typeof(TFolder).Name)""");
}
}