Export (0) Print
Expand All

DBDataPermission.AllowBlankPassword Property

Gets a value indicating whether a blank password is allowed.

[Visual Basic]
Public Property AllowBlankPassword As Boolean
[C#]
public bool AllowBlankPassword {get; set;}
[C++]
public: __property bool get_AllowBlankPassword();
public: __property void set_AllowBlankPassword(bool);
[JScript]
public function get AllowBlankPassword() : Boolean;
public function set AllowBlankPassword(Boolean);

Property Value

true if a blank password is allowed; otherwise, false.

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.

Requirements

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

See Also

DBDataPermission Class | DBDataPermission Members | System.Data.Common Namespace

Show:
© 2014 Microsoft