Bagikan melalui


OdbcPermission Konstruktor

Definisi

Menginisialisasi instans baru kelas OdbcPermission.

Overload

OdbcPermission()
Kedaluwarsa.
Kedaluwarsa.

Menginisialisasi instans baru kelas OdbcPermission.

OdbcPermission(PermissionState)

Menginisialisasi instans OdbcPermission baru kelas dengan salah PermissionState satu nilai.

OdbcPermission(PermissionState, Boolean)
Kedaluwarsa.
Kedaluwarsa.

Menginisialisasi instans baru kelas OdbcPermission.

OdbcPermission()

Sumber:
OdbcPermission.cs
Sumber:
OdbcPermission.cs
Sumber:
OdbcPermission.cs
Sumber:
OdbcPermission.cs

Perhatian

use OdbcPermission(PermissionState.None)

Perhatian

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

Menginisialisasi instans baru kelas OdbcPermission.

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

Keterangan

Konstruktor dasar menginisialisasi semua bidang ke nilai defaultnya.

Berlaku untuk

OdbcPermission(PermissionState)

Sumber:
OdbcPermission.cs
Sumber:
OdbcPermission.cs
Sumber:
OdbcPermission.cs
Sumber:
OdbcPermission.cs

Menginisialisasi instans OdbcPermission baru kelas dengan salah PermissionState satu nilai.

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)

Parameter

state
PermissionState

Salah PermissionState satu nilai.

Berlaku untuk

OdbcPermission(PermissionState, Boolean)

Sumber:
OdbcPermission.cs
Sumber:
OdbcPermission.cs
Sumber:
OdbcPermission.cs
Sumber:
OdbcPermission.cs

Perhatian

use OdbcPermission(PermissionState.None)

Perhatian

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

Menginisialisasi instans baru kelas OdbcPermission.

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)

Parameter

state
PermissionState

Salah System.Security.Permissions.PermissionState satu nilai.

allowBlankPassword
Boolean

Menunjukkan apakah kata sandi kosong diizinkan.

Atribut

Keterangan

Enumerasi PermissionState lebih diutamakan daripada AllowBlankPassword properti . Oleh karena itu, jika Anda mengatur AllowBlankPassword ke false, Anda juga harus mengatur PermissionState ke None untuk mencegah pengguna membuat koneksi menggunakan kata sandi kosong.

Berlaku untuk