Bewerken

Delen via


SqlClientPermission Constructors

Definition

Initializes a new instance of the SqlClientPermission class.

Overloads

SqlClientPermission()
Obsolete.
Obsolete.

Initializes a new instance of the SqlClientPermission class.

SqlClientPermission(PermissionState)

Initializes a new instance of the SqlClientPermission class.

SqlClientPermission(PermissionState, Boolean)
Obsolete.
Obsolete.

Initializes a new instance of the SqlClientPermission class.

SqlClientPermission()

Source:
SqlClientPermission.cs
Source:
SqlClientPermission.cs
Source:
SqlClientPermission.cs
Source:
SqlClientPermission.cs

Caution

use SqlClientPermission(PermissionState.None)

Caution

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

Initializes a new instance of the SqlClientPermission class.

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

See also

Applies to

SqlClientPermission(PermissionState)

Source:
SqlClientPermission.cs
Source:
SqlClientPermission.cs
Source:
SqlClientPermission.cs
Source:
SqlClientPermission.cs

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

state
PermissionState

One of the PermissionState values.

See also

Applies to

SqlClientPermission(PermissionState, Boolean)

Source:
SqlClientPermission.cs
Source:
SqlClientPermission.cs
Source:
SqlClientPermission.cs
Source:
SqlClientPermission.cs

Caution

use SqlClientPermission(PermissionState.None)

Caution

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

Initializes a new instance of the SqlClientPermission class.

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)

Parameters

state
PermissionState

One of the PermissionState values.

allowBlankPassword
Boolean

Indicates whether a blank password is allowed.

Attributes

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