<PackageReference Include="System.Security.Permissions" Version="6.0.0-preview.7.21377.19" />

DBDataPermission

Enables a .NET Framework data provider to help ensure that a user has a security level adequate for accessing data.
public bool AllowBlankPassword { get; set; }

Gets a value indicating whether a blank password is allowed.

protected DBDataPermission()

Initializes a new instance of a DBDataPermission class.

protected DBDataPermission(DBDataPermission permission)

Initializes a new instance of a DBDataPermission class using an existing DBDataPermission.

protected DBDataPermission(DBDataPermissionAttribute permissionAttribute)

Initializes a new instance of a DBDataPermission class with the specified DBDataPermissionAttribute.

Initializes a new instance of a DBDataPermission class with the specified PermissionState value.

protected DBDataPermission(PermissionState state, bool allowBlankPassword)

Initializes a new instance of a DBDataPermission class with the specified PermissionState value, and a value indicating whether a blank password is allowed.

public virtual void Add(string connectionString, string restrictions, KeyRestrictionBehavior behavior)

Adds access for the specified connection string to the existing state of the DBDataPermission.

protected void Clear()

Removes all permissions that were previous added using the Add method.

protected virtual DBDataPermission CreateInstance()

Creates a new instance of the DBDataPermission class.

public bool IsUnrestricted()

Returns a value indicating whether the permission can be represented as unrestricted without any knowledge of the permission semantics.