DBDataPermission.AllowBlankPassword DBDataPermission.AllowBlankPassword DBDataPermission.AllowBlankPassword DBDataPermission.AllowBlankPassword Property

定义

获取一个值,该值指示是否允许使用空白密码。Gets a value indicating whether a blank password is allowed.

public:
 property bool AllowBlankPassword { bool get(); void set(bool value); };
public bool AllowBlankPassword { get; set; }
member this.AllowBlankPassword : bool with get, set
Public Property AllowBlankPassword As Boolean

属性值

如果允许使用空白密码,则为 true;否则为 falsetrue if a blank password is allowed, otherwise, false.

注解

PermissionState枚举优先AllowBlankPassword于属性。The PermissionState enumeration takes precedence over the AllowBlankPassword property. 因此,如果将设置AllowBlankPasswordfalse,则还必须将PermissionState设置None为,以防止用户使用空白密码建立连接。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.

适用于

另请参阅