OleDbPermission 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 OleDbPermission 类的新实例。
重载
OleDbPermission() |
已过时.
已过时.
初始化 OleDbPermission 类的新实例。 |
OleDbPermission(PermissionState) |
初始化 OleDbPermission 类的新实例。 |
OleDbPermission(PermissionState, Boolean) |
已过时.
已过时.
初始化 OleDbPermission 类的新实例。 |
OleDbPermission()
- Source:
- OleDbPermission.cs
- Source:
- OleDbPermission.cs
- Source:
- OleDbPermission.cs
- Source:
- OleDbPermission.cs
注意
use OleDbPermission(PermissionState.None)
注意
OleDbPermission() has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202
初始化 OleDbPermission 类的新实例。
public:
OleDbPermission();
public OleDbPermission ();
[System.Obsolete("use OleDbPermission(PermissionState.None)", true)]
public OleDbPermission ();
[System.Obsolete("OleDbPermission() has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202", true)]
public OleDbPermission ();
Public Sub New ()
- 属性
适用于
OleDbPermission(PermissionState)
- Source:
- OleDbPermission.cs
- Source:
- OleDbPermission.cs
- Source:
- OleDbPermission.cs
- Source:
- OleDbPermission.cs
初始化 OleDbPermission 类的新实例。
public:
OleDbPermission(System::Security::Permissions::PermissionState state);
public OleDbPermission (System.Security.Permissions.PermissionState state);
new System.Data.OleDb.OleDbPermission : System.Security.Permissions.PermissionState -> System.Data.OleDb.OleDbPermission
Public Sub New (state As PermissionState)
参数
- state
- PermissionState
PermissionState 值之一。
适用于
OleDbPermission(PermissionState, Boolean)
- Source:
- OleDbPermission.cs
- Source:
- OleDbPermission.cs
- Source:
- OleDbPermission.cs
- Source:
- OleDbPermission.cs
注意
use OleDbPermission(PermissionState.None)
注意
OleDbPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202
初始化 OleDbPermission 类的新实例。
public:
OleDbPermission(System::Security::Permissions::PermissionState state, bool allowBlankPassword);
public OleDbPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("use OleDbPermission(PermissionState.None)", true)]
public OleDbPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("OleDbPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202", true)]
public OleDbPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
new System.Data.OleDb.OleDbPermission : System.Security.Permissions.PermissionState * bool -> System.Data.OleDb.OleDbPermission
[<System.Obsolete("use OleDbPermission(PermissionState.None)", true)>]
new System.Data.OleDb.OleDbPermission : System.Security.Permissions.PermissionState * bool -> System.Data.OleDb.OleDbPermission
[<System.Obsolete("OleDbPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202", true)>]
new System.Data.OleDb.OleDbPermission : System.Security.Permissions.PermissionState * bool -> System.Data.OleDb.OleDbPermission
Public Sub New (state As PermissionState, allowBlankPassword As Boolean)
参数
- state
- PermissionState
PermissionState 值之一。
- allowBlankPassword
- Boolean
指示是否允许空白密码。
- 属性
注解
PermissionState枚举优先于 AllowBlankPassword 属性。 因此,如果设置为 AllowBlankPasswordfalse
,还必须将 设置为 PermissionStateNone
,以防止用户使用空白密码进行连接。