DBDataPermission Constructors

Definition

Initializes a new instance of the DBDataPermission class.

Overloads

DBDataPermission()
Obsolete.

Initializes a new instance of the DBDataPermission class.

DBDataPermission(DBDataPermission)

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

DBDataPermission(DBDataPermissionAttribute)

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

DBDataPermission(PermissionState)

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

DBDataPermission(PermissionState, Boolean)
Obsolete.

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

DBDataPermission()

Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs

Caution

DBDataPermission() has been deprecated. Use the DBDataPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202

Initializes a new instance of the DBDataPermission class.

protected DBDataPermission ();
[System.Obsolete("DBDataPermission() has been deprecated.  Use the DBDataPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)]
protected DBDataPermission ();
Attributes

See also

Applies to

.NET 9 (package-provided) and other versions
Product Versions (Obsolete)
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DBDataPermission(DBDataPermission)

Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs

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

protected DBDataPermission (System.Data.Common.DBDataPermission permission);

Parameters

permission
DBDataPermission

An existing DBDataPermission used to create a new DBDataPermission.

See also

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DBDataPermission(DBDataPermissionAttribute)

Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs

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

protected DBDataPermission (System.Data.Common.DBDataPermissionAttribute permissionAttribute);

Parameters

permissionAttribute
DBDataPermissionAttribute

A security action associated with a custom security attribute.

See also

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DBDataPermission(PermissionState)

Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs

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

protected DBDataPermission (System.Security.Permissions.PermissionState state);

Parameters

state
PermissionState

One of the PermissionState values.

See also

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DBDataPermission(PermissionState, Boolean)

Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs
Source:
DBDataPermission.cs

Caution

DBDataPermission(PermissionState state,Boolean allowBlankPassword) has been deprecated. Use the DBDataPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202

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

protected DBDataPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
public DBDataPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("DBDataPermission(PermissionState state,Boolean allowBlankPassword) has been deprecated.  Use the DBDataPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)]
protected DBDataPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);

Parameters

state
PermissionState

One of the PermissionState values.

allowBlankPassword
Boolean

true to indicate that a blank password is allowed; otherwise, false.

Attributes

Remarks

The PermissionState enumeration takes precedence over the AllowBlankPassword property. Therefore, if you set AllowBlankPassword to false, you must also set PermissionState to None to prevent a user from making a connection using a blank password.

See also

Applies to

.NET 9 (package-provided) and other versions
Product Versions (Obsolete)
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9