DBDataPermission Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DBDataPermission
class.
DBDataPermission() |
Obsolete.
Initializes a new instance of the |
DBDataPermission(DBDataPermission) |
Initializes a new instance of the |
DBDataPermission(DBDataPermissionAttribute) |
Initializes a new instance of the |
DBDataPermission(PermissionState) |
Initializes a new instance of the |
DBDataPermission(PermissionState, Boolean) |
Obsolete.
Initializes a new instance of the |
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
Caution
DBDataPermission() has been deprecated. Use the DBDataPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202
Initializes a new instance of the DBDataPermission
class.
protected:
DBDataPermission();
protected DBDataPermission ();
[System.Obsolete("DBDataPermission() has been deprecated. Use the DBDataPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202", true)]
protected DBDataPermission ();
Protected Sub New ()
- Attributes
See also
Applies to
.NET 9 (package-provided) and other versions
Product | Versions (Obsolete) |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 1.1, 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1) |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
Initializes a new instance of the DBDataPermission
class using an existing DBDataPermission
.
protected:
DBDataPermission(System::Data::Common::DBDataPermission ^ permission);
protected DBDataPermission (System.Data.Common.DBDataPermission permission);
new System.Data.Common.DBDataPermission : System.Data.Common.DBDataPermission -> System.Data.Common.DBDataPermission
Protected Sub New (permission As DBDataPermission)
Parameters
- permission
- DBDataPermission
An existing DBDataPermission
used to create a new DBDataPermission
.
See also
Applies to
.NET 9 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
Initializes a new instance of the DBDataPermission
class with the specified DBDataPermissionAttribute
.
protected:
DBDataPermission(System::Data::Common::DBDataPermissionAttribute ^ permissionAttribute);
protected DBDataPermission (System.Data.Common.DBDataPermissionAttribute permissionAttribute);
new System.Data.Common.DBDataPermission : System.Data.Common.DBDataPermissionAttribute -> System.Data.Common.DBDataPermission
Protected Sub New (permissionAttribute As DBDataPermissionAttribute)
Parameters
- permissionAttribute
- DBDataPermissionAttribute
A security action associated with a custom security attribute.
See also
Applies to
.NET 9 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
Initializes a new instance of the DBDataPermission
class with the specified PermissionState value.
protected:
DBDataPermission(System::Security::Permissions::PermissionState state);
protected DBDataPermission (System.Security.Permissions.PermissionState state);
new System.Data.Common.DBDataPermission : System.Security.Permissions.PermissionState -> System.Data.Common.DBDataPermission
Protected Sub New (state As PermissionState)
Parameters
- state
- PermissionState
One of the PermissionState values.
See also
Applies to
.NET 9 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
- Source:
- DBDataPermission.cs
Caution
DBDataPermission(PermissionState state,Boolean allowBlankPassword) has been deprecated. Use the DBDataPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202
Initializes a new instance of the DBDataPermission
class with the specified PermissionState value, and a value indicating whether a blank password is allowed.
protected:
DBDataPermission(System::Security::Permissions::PermissionState state, bool allowBlankPassword);
public:
DBDataPermission(System::Security::Permissions::PermissionState state, bool allowBlankPassword);
protected DBDataPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
public DBDataPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("DBDataPermission(PermissionState state,Boolean allowBlankPassword) has been deprecated. Use the DBDataPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202", true)]
protected DBDataPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
new System.Data.Common.DBDataPermission : System.Security.Permissions.PermissionState * bool -> System.Data.Common.DBDataPermission
[<System.Obsolete("DBDataPermission(PermissionState state,Boolean allowBlankPassword) has been deprecated. Use the DBDataPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202", true)>]
new System.Data.Common.DBDataPermission : System.Security.Permissions.PermissionState * bool -> System.Data.Common.DBDataPermission
Protected Sub New (state As PermissionState, allowBlankPassword As Boolean)
Public Sub New (state As PermissionState, allowBlankPassword As Boolean)
Parameters
- state
- PermissionState
One of the PermissionState values.
- allowBlankPassword
- Boolean
true
to indicate that a blank password is allowed; otherwise, false
.
- 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.
See also
Applies to
.NET 9 (package-provided) and other versions
Product | Versions (Obsolete) |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 1.1, 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1) |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: