Condividi tramite


OleDbPermission Costruttori

Definizione

Inizializza una nuova istanza della classe OleDbPermission.

Overload

OleDbPermission()
Obsoleti.
Obsoleti.

Inizializza una nuova istanza della classe OleDbPermission.

OleDbPermission(PermissionState)

Inizializza una nuova istanza della classe OleDbPermission.

OleDbPermission(PermissionState, Boolean)
Obsoleti.
Obsoleti.

Inizializza una nuova istanza della classe OleDbPermission.

OleDbPermission()

Origine:
OleDbPermission.cs
Origine:
OleDbPermission.cs
Origine:
OleDbPermission.cs
Origine:
OleDbPermission.cs

Attenzione

use OleDbPermission(PermissionState.None)

Attenzione

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

Inizializza una nuova istanza della classe 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 ()
Attributi

Si applica a

OleDbPermission(PermissionState)

Origine:
OleDbPermission.cs
Origine:
OleDbPermission.cs
Origine:
OleDbPermission.cs
Origine:
OleDbPermission.cs

Inizializza una nuova istanza della classe 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)

Parametri

state
PermissionState

Uno dei valori di PermissionState.

Si applica a

OleDbPermission(PermissionState, Boolean)

Origine:
OleDbPermission.cs
Origine:
OleDbPermission.cs
Origine:
OleDbPermission.cs
Origine:
OleDbPermission.cs

Attenzione

use OleDbPermission(PermissionState.None)

Attenzione

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

Inizializza una nuova istanza della classe 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)

Parametri

state
PermissionState

Uno dei valori di PermissionState.

allowBlankPassword
Boolean

Indica se è consentita una password vuota.

Attributi

Commenti

L'enumerazione PermissionState ha la precedenza sulla AllowBlankPassword proprietà. Pertanto, se si imposta AllowBlankPassword su false, è necessario impostare PermissionState anche per impedire a None un utente di effettuare una connessione usando una password vuota.

Si applica a