Bewerken

Share via


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();
protected DBDataPermission ();
[System.Obsolete("DBDataPermission() has been deprecated.  Use the DBDataPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)]
protected DBDataPermission ();
Protected Sub New ()
Attributes

See also

Applies to

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);
protected DBDataPermission (System.Data.Common.DBDataPermission permission);
new System.Data.Common.DBDataPermission : System.Data.Common.DBDataPermission -> System.Data.Common.DBDataPermission
Protected Sub New (permission As DBDataPermission)

Parameters

permission
DBDataPermission

An existing DBDataPermission used to create a new DBDataPermission.

See also

Applies to

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);
protected DBDataPermission (System.Data.Common.DBDataPermissionAttribute permissionAttribute);
new System.Data.Common.DBDataPermission : System.Data.Common.DBDataPermissionAttribute -> System.Data.Common.DBDataPermission
Protected Sub New (permissionAttribute As DBDataPermissionAttribute)

Parameters

permissionAttribute
DBDataPermissionAttribute

A security action associated with a custom security attribute.

See also

Applies to

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);
protected DBDataPermission (System.Security.Permissions.PermissionState state);
new System.Data.Common.DBDataPermission : System.Security.Permissions.PermissionState -> System.Data.Common.DBDataPermission
Protected Sub New (state As PermissionState)

Parameters

state
PermissionState

One of the PermissionState values.

See also

Applies to

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);
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);
new System.Data.Common.DBDataPermission : System.Security.Permissions.PermissionState * bool -> System.Data.Common.DBDataPermission
[<System.Obsolete("DBDataPermission(PermissionState state,Boolean allowBlankPassword) has been deprecated.  Use the DBDataPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)>]
new System.Data.Common.DBDataPermission : System.Security.Permissions.PermissionState * bool -> System.Data.Common.DBDataPermission
Protected Sub New (state As PermissionState, allowBlankPassword As Boolean)
Public Sub New (state As PermissionState, allowBlankPassword As Boolean)

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