OdbcPermission 构造函数

定义

初始化 OdbcPermission 类的新实例。

重载

OdbcPermission()
已过时.
已过时.

初始化 OdbcPermission 类的新实例。

OdbcPermission(PermissionState)

使用其中一个 PermissionState 值初始化 OdbcPermission 类的新实例。

OdbcPermission(PermissionState, Boolean)
已过时.
已过时.

初始化 OdbcPermission 类的新实例。

OdbcPermission()

Source:
OdbcPermission.cs
Source:
OdbcPermission.cs
Source:
OdbcPermission.cs
Source:
OdbcPermission.cs

注意

use OdbcPermission(PermissionState.None)

注意

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

初始化 OdbcPermission 类的新实例。

public:
 OdbcPermission();
public OdbcPermission ();
[System.Obsolete("use OdbcPermission(PermissionState.None)", true)]
public OdbcPermission ();
[System.Obsolete("OdbcPermission() has been deprecated.  Use the OdbcPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)]
public OdbcPermission ();
Public Sub New ()
属性

注解

基构造函数将所有字段初始化为其默认值。

适用于

OdbcPermission(PermissionState)

Source:
OdbcPermission.cs
Source:
OdbcPermission.cs
Source:
OdbcPermission.cs
Source:
OdbcPermission.cs

使用其中一个 PermissionState 值初始化 OdbcPermission 类的新实例。

public:
 OdbcPermission(System::Security::Permissions::PermissionState state);
public OdbcPermission (System.Security.Permissions.PermissionState state);
new System.Data.Odbc.OdbcPermission : System.Security.Permissions.PermissionState -> System.Data.Odbc.OdbcPermission
Public Sub New (state As PermissionState)

参数

state
PermissionState

PermissionState 值之一。

适用于

OdbcPermission(PermissionState, Boolean)

Source:
OdbcPermission.cs
Source:
OdbcPermission.cs
Source:
OdbcPermission.cs
Source:
OdbcPermission.cs

注意

use OdbcPermission(PermissionState.None)

注意

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

初始化 OdbcPermission 类的新实例。

public:
 OdbcPermission(System::Security::Permissions::PermissionState state, bool allowBlankPassword);
public OdbcPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("use OdbcPermission(PermissionState.None)", true)]
public OdbcPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("OdbcPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated.  Use the OdbcPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)]
public OdbcPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
new System.Data.Odbc.OdbcPermission : System.Security.Permissions.PermissionState * bool -> System.Data.Odbc.OdbcPermission
[<System.Obsolete("use OdbcPermission(PermissionState.None)", true)>]
new System.Data.Odbc.OdbcPermission : System.Security.Permissions.PermissionState * bool -> System.Data.Odbc.OdbcPermission
[<System.Obsolete("OdbcPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated.  Use the OdbcPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)>]
new System.Data.Odbc.OdbcPermission : System.Security.Permissions.PermissionState * bool -> System.Data.Odbc.OdbcPermission
Public Sub New (state As PermissionState, allowBlankPassword As Boolean)

参数

state
PermissionState

System.Security.Permissions.PermissionState 值之一。

allowBlankPassword
Boolean

指示是否允许空白密码。

属性

注解

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

适用于