Bagikan melalui


SqlClientPermission Konstruktor

Definisi

Menginisialisasi instans baru kelas SqlClientPermission.

Overload

SqlClientPermission()
Kedaluwarsa.
Kedaluwarsa.

Menginisialisasi instans baru kelas SqlClientPermission.

SqlClientPermission(PermissionState)

Menginisialisasi instans baru kelas SqlClientPermission.

SqlClientPermission(PermissionState, Boolean)
Kedaluwarsa.
Kedaluwarsa.

Menginisialisasi instans baru kelas SqlClientPermission.

SqlClientPermission()

Sumber:
SqlClientPermission.cs
Sumber:
SqlClientPermission.cs
Sumber:
SqlClientPermission.cs
Sumber:
SqlClientPermission.cs

Perhatian

use SqlClientPermission(PermissionState.None)

Perhatian

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

Menginisialisasi instans baru kelas SqlClientPermission.

public:
 SqlClientPermission();
public SqlClientPermission ();
[System.Obsolete("use SqlClientPermission(PermissionState.None)", true)]
public SqlClientPermission ();
[System.Obsolete("SqlClientPermission() has been deprecated.  Use the SqlClientPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)]
public SqlClientPermission ();
Public Sub New ()
Atribut

Lihat juga

Berlaku untuk

SqlClientPermission(PermissionState)

Sumber:
SqlClientPermission.cs
Sumber:
SqlClientPermission.cs
Sumber:
SqlClientPermission.cs
Sumber:
SqlClientPermission.cs

Menginisialisasi instans baru kelas SqlClientPermission.

public:
 SqlClientPermission(System::Security::Permissions::PermissionState state);
public SqlClientPermission (System.Security.Permissions.PermissionState state);
new System.Data.SqlClient.SqlClientPermission : System.Security.Permissions.PermissionState -> System.Data.SqlClient.SqlClientPermission
Public Sub New (state As PermissionState)

Parameter

state
PermissionState

Salah PermissionState satu nilai.

Lihat juga

Berlaku untuk

SqlClientPermission(PermissionState, Boolean)

Sumber:
SqlClientPermission.cs
Sumber:
SqlClientPermission.cs
Sumber:
SqlClientPermission.cs
Sumber:
SqlClientPermission.cs

Perhatian

use SqlClientPermission(PermissionState.None)

Perhatian

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

Menginisialisasi instans baru kelas SqlClientPermission.

public:
 SqlClientPermission(System::Security::Permissions::PermissionState state, bool allowBlankPassword);
public SqlClientPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("use SqlClientPermission(PermissionState.None)", true)]
public SqlClientPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("SqlClientPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated.  Use the SqlClientPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)]
public SqlClientPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
new System.Data.SqlClient.SqlClientPermission : System.Security.Permissions.PermissionState * bool -> System.Data.SqlClient.SqlClientPermission
[<System.Obsolete("use SqlClientPermission(PermissionState.None)", true)>]
new System.Data.SqlClient.SqlClientPermission : System.Security.Permissions.PermissionState * bool -> System.Data.SqlClient.SqlClientPermission
[<System.Obsolete("SqlClientPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated.  Use the SqlClientPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)>]
new System.Data.SqlClient.SqlClientPermission : System.Security.Permissions.PermissionState * bool -> System.Data.SqlClient.SqlClientPermission
Public Sub New (state As PermissionState, allowBlankPassword As Boolean)

Parameter

state
PermissionState

Salah 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. Untuk contoh yang menunjukkan cara menggunakan tuntutan keamanan, lihat Keamanan Akses Kode dan ADO.NET.

Lihat juga

Berlaku untuk