DBDataPermission 构造函数

定义

初始化 DBDataPermission 类的新实例。

重载

DBDataPermission()
已过时.

初始化 DBDataPermission 类的新实例。

DBDataPermission(DBDataPermission)

使用现有 DBDataPermission初始化 类的新实例DBDataPermission

DBDataPermission(DBDataPermissionAttribute)

使用指定的 DBDataPermission 初始化 DBDataPermissionAttribute 类的新实例。

DBDataPermission(PermissionState)

使用指定的 PermissionState 值初始化 DBDataPermission 类的新实例。

DBDataPermission(PermissionState, Boolean)
已过时.

使用指定的PermissionState值和指示是否允许空密码的值初始化 类的新实例DBDataPermission

DBDataPermission()

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

注意

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

初始化 DBDataPermission 类的新实例。

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 ()
属性

另请参阅

适用于

DBDataPermission(DBDataPermission)

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

使用现有 DBDataPermission初始化 类的新实例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)

参数

permission
DBDataPermission

用于创建新 DBDataPermission 的现有 DBDataPermission

另请参阅

适用于

DBDataPermission(DBDataPermissionAttribute)

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

使用指定的 DBDataPermission 初始化 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)

参数

permissionAttribute
DBDataPermissionAttribute

与自定义安全特性相关的安全操作。

另请参阅

适用于

DBDataPermission(PermissionState)

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

使用指定的 PermissionState 值初始化 DBDataPermission 类的新实例。

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)

参数

state
PermissionState

PermissionState 值之一。

另请参阅

适用于

DBDataPermission(PermissionState, Boolean)

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

注意

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

使用指定的PermissionState值和指示是否允许空密码的值初始化 类的新实例DBDataPermission

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)

参数

state
PermissionState

PermissionState 值之一。

allowBlankPassword
Boolean

true 表示允许使用空白密码;否则为 false

属性

注解

PermissionState枚举优先于 AllowBlankPassword 属性。 因此,如果设置为 AllowBlankPasswordfalse,还必须将 设置为 PermissionStateNone ,以防止用户使用空白密码进行连接。

另请参阅

适用于