DisplayPermissionLevel property

FolderPermissionLevel? DisplayPermissionLevel
Gets the permission level that Outlook would display for this folder permission.

Implementation

FolderPermissionLevel? get DisplayPermissionLevel {
  // If permission level is set to Custom, see if there's a variant
  // that Outlook would map to the same permission level.
  if (this._permissionLevel == FolderPermissionLevel.Custom) {
    for (FolderPermission variant
        in FolderPermission._levelVariants.Member!) {
      if (this._IsEqualTo(variant)) {
        return variant.PermissionLevel;
      }
    }
  }

  return this._permissionLevel;
}