Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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
public bool AllowBlankPassword {get; set;}
public: __property bool get_AllowBlankPassword();
public: __property void set_AllowBlankPassword(bool);
public function get AllowBlankPassword() : Boolean;
public function set AllowBlankPassword(Boolean);

Property Value

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


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.


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

© 2015 Microsoft