System.Data.Common.DBDataPermission Members

The members of System.Data.Common.DBDataPermission are listed below.

See Also: Inherited members from System.Security.CodeAccessPermission

Protected Constructors

Initializes a new instance of a DBDataPermission class.

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

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

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

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

Public Properties

AllowBlankPasswordbool.

Gets a value indicating whether a blank password is allowed.

Public Methods

Add(string, string, System.Data.KeyRestrictionBehavior)

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

override
Copy() : System.Security.IPermission

Creates and returns an identical copy of the current permission object.

override
FromXml(System.Security.SecurityElement)

Reconstructs a security object with a specified state from an XML encoding.

override
Intersect(System.Security.IPermission) : System.Security.IPermission

Returns a new permission object representing the intersection of the current permission object and the specified permission object.

override
IsSubsetOf(System.Security.IPermission) : bool

Returns a value indicating whether the current permission object is a subset of the specified permission object.

IsUnrestricted() : bool

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

override
ToXml() : System.Security.SecurityElement

Creates an XML encoding of the security object and its current state.

override
Union(System.Security.IPermission) : System.Security.IPermission

Returns a new permission object that is the union of the current and specified permission objects.

Protected Methods

Clear()

Removes all permissions that were previous added using the DBDataPermission.Add(string, string, System.Data.KeyRestrictionBehavior) method.

CreateInstance() : DBDataPermission

Creates a new instance of the DBDataPermission class.