Editar

Compartilhar via


OdbcPermission Constructors

Definition

Initializes a new instance of the OdbcPermission class.

Overloads

OdbcPermission()
Obsolete.
Obsolete.

Initializes a new instance of the OdbcPermission class.

OdbcPermission(PermissionState)

Initializes a new instance of the OdbcPermission class with one of the PermissionState values.

OdbcPermission(PermissionState, Boolean)
Obsolete.
Obsolete.

Initializes a new instance of the OdbcPermission class.

OdbcPermission()

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

Caution

use OdbcPermission(PermissionState.None)

Caution

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

Initializes a new instance of the OdbcPermission class.

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

Remarks

The base constructor initializes all fields to their default values.

Applies to

OdbcPermission(PermissionState)

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

Initializes a new instance of the OdbcPermission class with one of the PermissionState values.

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)

Parameters

state
PermissionState

One of the PermissionState values.

Applies to

OdbcPermission(PermissionState, Boolean)

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

Caution

use OdbcPermission(PermissionState.None)

Caution

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

Initializes a new instance of the OdbcPermission class.

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)

Parameters

state
PermissionState

One of the System.Security.Permissions.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