DBDataPermission.AllowBlankPassword Property


Gets a value indicating whether a blank password is allowed.

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

public bool AllowBlankPassword { get; set; }

Property Value

Type: System.Boolean

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.

.NET Framework
Available since 1.1
Return to top