Szerkesztés

Megosztás a következőn keresztül:


OleDbPermission Constructors

Definition

Initializes a new instance of the OleDbPermission class.

Overloads

OleDbPermission()
Obsolete.
Obsolete.

Initializes a new instance of the OleDbPermission class.

OleDbPermission(PermissionState)

Initializes a new instance of the OleDbPermission class.

OleDbPermission(PermissionState, Boolean)
Obsolete.
Obsolete.

Initializes a new instance of the OleDbPermission class.

OleDbPermission()

Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs

Caution

use OleDbPermission(PermissionState.None)

Caution

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

Initializes a new instance of the OleDbPermission class.

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 ()
Attributes

Applies to

OleDbPermission(PermissionState)

Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs

Initializes a new instance of the OleDbPermission class.

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)

Parameters

state
PermissionState

One of the PermissionState values.

Applies to

OleDbPermission(PermissionState, Boolean)

Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs

Caution

use OleDbPermission(PermissionState.None)

Caution

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

Initializes a new instance of the OleDbPermission class.

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)

Parameters

state
PermissionState

One of the PermissionState values.

allowBlankPassword
Boolean

Indicates whether a blank password is allowed.

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.

Applies to