SqlClientPermission SqlClientPermission SqlClientPermission SqlClientPermission Constructors

Definition

Overloads

SqlClientPermission() SqlClientPermission() SqlClientPermission()

Initializes a new instance of the SqlClientPermission class.

SqlClientPermission(PermissionState) SqlClientPermission(PermissionState) SqlClientPermission(PermissionState) SqlClientPermission(PermissionState)

Initializes a new instance of the SqlClientPermission class.

SqlClientPermission(PermissionState, Boolean) SqlClientPermission(PermissionState, Boolean) SqlClientPermission(PermissionState, Boolean) SqlClientPermission(PermissionState, Boolean)

Initializes a new instance of the SqlClientPermission class.

SqlClientPermission() SqlClientPermission() SqlClientPermission()

Warning

This API is now obsolete.

Initializes a new instance of the SqlClientPermission class.

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

SqlClientPermission(PermissionState) SqlClientPermission(PermissionState) SqlClientPermission(PermissionState) SqlClientPermission(PermissionState)

Initializes a new instance of the SqlClientPermission class.

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)

Parameters

See also

SqlClientPermission(PermissionState, Boolean) SqlClientPermission(PermissionState, Boolean) SqlClientPermission(PermissionState, Boolean) SqlClientPermission(PermissionState, Boolean)

Warning

This API is now obsolete.

Initializes a new instance of the SqlClientPermission class.

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)]
[System.Obsolete("use SqlClientPermission(PermissionState.None)", true)]
public SqlClientPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
new System.Data.SqlClient.SqlClientPermission : System.Security.Permissions.PermissionState * bool -> System.Data.SqlClient.SqlClientPermission
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. For an example demonstrating how to use security demands, see Code Access Security and ADO.NET.

See also

Applies to