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