OleDbPermission Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menginisialisasi instans baru kelas OleDbPermission.
Overload
OleDbPermission() |
Kedaluwarsa.
Kedaluwarsa.
Menginisialisasi instans baru kelas OleDbPermission. |
OleDbPermission(PermissionState) |
Menginisialisasi instans baru kelas OleDbPermission. |
OleDbPermission(PermissionState, Boolean) |
Kedaluwarsa.
Kedaluwarsa.
Menginisialisasi instans baru kelas OleDbPermission. |
OleDbPermission()
- Sumber:
- OleDbPermission.cs
- Sumber:
- OleDbPermission.cs
- Sumber:
- OleDbPermission.cs
Perhatian
use OleDbPermission(PermissionState.None)
Perhatian
OleDbPermission() has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202
Menginisialisasi instans baru kelas 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 ()
- Atribut
Berlaku untuk
OleDbPermission(PermissionState)
- Sumber:
- OleDbPermission.cs
- Sumber:
- OleDbPermission.cs
- Sumber:
- OleDbPermission.cs
Menginisialisasi instans baru kelas 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)
Parameter
- state
- PermissionState
Salah PermissionState satu nilai.
Berlaku untuk
OleDbPermission(PermissionState, Boolean)
- Sumber:
- OleDbPermission.cs
- Sumber:
- OleDbPermission.cs
- Sumber:
- OleDbPermission.cs
Perhatian
use OleDbPermission(PermissionState.None)
Perhatian
OleDbPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202
Menginisialisasi instans baru kelas 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)
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.