OleDbPermission OleDbPermission OleDbPermission OleDbPermission Constructors

Definition

Overloads

OleDbPermission() OleDbPermission() OleDbPermission()

Initializes a new instance of the OleDbPermission class.

OleDbPermission(PermissionState) OleDbPermission(PermissionState) OleDbPermission(PermissionState) OleDbPermission(PermissionState)

Initializes a new instance of the OleDbPermission class.

OleDbPermission(PermissionState, Boolean) OleDbPermission(PermissionState, Boolean) OleDbPermission(PermissionState, Boolean) OleDbPermission(PermissionState, Boolean)

Initializes a new instance of the OleDbPermission class.

OleDbPermission() OleDbPermission() OleDbPermission()

Warning

This API is now obsolete.

Initializes a new instance of the OleDbPermission class.

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

OleDbPermission(PermissionState) OleDbPermission(PermissionState) OleDbPermission(PermissionState) OleDbPermission(PermissionState)

Initializes a new instance of the OleDbPermission class.

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)

Parameters

OleDbPermission(PermissionState, Boolean) OleDbPermission(PermissionState, Boolean) OleDbPermission(PermissionState, Boolean) OleDbPermission(PermissionState, Boolean)

Warning

This API is now obsolete.

Initializes a new instance of the OleDbPermission class.

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)]
[System.Obsolete("use OleDbPermission(PermissionState.None)", true)]
public OleDbPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
new System.Data.OleDb.OleDbPermission : System.Security.Permissions.PermissionState * bool -> System.Data.OleDb.OleDbPermission
Public Sub New (state As PermissionState, allowBlankPassword As Boolean)

Parameters

allowBlankPassword
Boolean Boolean Boolean Boolean

Indicates whether a blank password is allowed.

Remarks

The PermissionState enumeration takes precedence over the AllowBlankPassword property. Therefore, if you set AllowBlankPassword to false, you must also set PermissionState to None to prevent a user from making a connection using a blank password.

Applies to