<PackageReference Include="System.Security.Permissions" Version="5.0.0-preview.1.20120.5" />

ResourcePermissionBase

Allows control of code access security permissions.
public const string Any = "*"

Specifies the character to be used to represent the any wildcard character.

public const string Local = "."

Specifies the character to be used to represent a local reference.

protected Type PermissionAccessType { get; protected set; }

Gets or sets an enumeration value that describes the types of access that you are giving the resource.

protected string[] TagNames { get; protected set; }

Gets or sets an array of strings that identify the resource you are protecting.

Initializes a new instance of the ResourcePermissionBase class.

Initializes a new instance of the ResourcePermissionBase class with the specified level of access to resources at creation.

Adds a permission entry to the permission.

protected void Clear()

Clears the permission of the added permission entries.

Returns an array of the ResourcePermissionBaseEntry objects added to this permission.

public bool IsUnrestricted()

Gets a value indicating whether the permission is unrestricted.

Removes a permission entry from the permission.