Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

SqlClientPermission Class

Enables the .NET Framework Data Provider for SQL Server to help ensure that a user has a security level adequate to access a data source.

For a list of all members of this type, see SqlClientPermission Members.

System.Object
   System.Security.CodeAccessPermission
      System.Data.Common.DBDataPermission
         System.Data.SqlClient.SqlClientPermission

[Visual Basic]
<Serializable>
NotInheritable Public Class SqlClientPermission
   Inherits DBDataPermission
[C#]
[Serializable]
public sealed class SqlClientPermission : DBDataPermission
[C++]
[Serializable]
public __gc __sealed class SqlClientPermission : public
   DBDataPermission
[JScript]
public
   Serializable
class SqlClientPermission extends DBDataPermission

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

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

Requirements

Namespace: System.Data.SqlClient

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Data (in System.Data.dll)

See Also

SqlClientPermission Members | System.Data.SqlClient Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.