Compartir vía


OleDbPermission Constructores

Definición

Inicializa una nueva instancia de la clase OleDbPermission.

Sobrecargas

OleDbPermission()
Obsoletos.
Obsoletos.

Inicializa una nueva instancia de la clase OleDbPermission.

OleDbPermission(PermissionState)

Inicializa una nueva instancia de la clase OleDbPermission.

OleDbPermission(PermissionState, Boolean)
Obsoletos.
Obsoletos.

Inicializa una nueva instancia de la clase OleDbPermission.

OleDbPermission()

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

Precaución

use OleDbPermission(PermissionState.None)

Precaución

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

Inicializa una nueva instancia de la clase 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 ()
Atributos

Se aplica a

OleDbPermission(PermissionState)

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

Inicializa una nueva instancia de la clase 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)

Parámetros

state
PermissionState

Uno de los valores de PermissionState.

Se aplica a

OleDbPermission(PermissionState, Boolean)

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

Precaución

use OleDbPermission(PermissionState.None)

Precaución

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

Inicializa una nueva instancia de la clase 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)

Parámetros

state
PermissionState

Uno de los valores de PermissionState.

allowBlankPassword
Boolean

Indica si se permite una contraseña en blanco.

Atributos

Comentarios

La PermissionState enumeración tiene prioridad sobre la AllowBlankPassword propiedad . Por lo tanto, si establece AllowBlankPasswordfalseen , también debe establecer PermissionState en None para impedir que un usuario realice una conexión mediante una contraseña en blanco.

Se aplica a