5 references to MAXLEN_USERNAME
System.Data (5)
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (1)
370
ValidateValueLength(_userID, TdsEnums.
MAXLEN_USERNAME
, KEY.User_ID);
fx\src\data\System\Data\SqlClient\SqlCredential.cs (2)
38
if (userId.Length > TdsEnums.
MAXLEN_USERNAME
)
40
throw ADP.InvalidArgumentLength("userId", TdsEnums.
MAXLEN_USERNAME
);
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
7118
Debug.Assert(rec.userName == null || (rec.userName != null && TdsEnums.
MAXLEN_USERNAME
>= rec.userName.Length), "_userID.Length exceeds the max length for this value");
7119
Debug.Assert(rec.credential == null || (rec.credential != null && TdsEnums.
MAXLEN_USERNAME
>= rec.credential.UserId.Length), "_credential.UserId.Length exceeds the max length for this value");