11 references to Length
PresentationFramework (2)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (2)
568return _password.Length; 859Invariant.Assert(position.Offset >= 0 && position.Offset <= _password.Length);
System (1)
net\System\Net\UnsafeNativeMethods.cs (1)
3376if (secureString == null || secureString.Length == 0)
System.Data (8)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
2082if (newSecurePassword == null || newSecurePassword.Length == 0) { 2090if (TdsEnums.MAXLEN_NEWPASSWORD < newSecurePassword.Length) {
fx\src\data\System\Data\SqlClient\SqlCredential.cs (1)
48if (password.Length > TdsEnums.MAXLEN_PASSWORD)
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
7122Debug.Assert(rec.credential == null || (rec.credential != null && TdsEnums.MAXLEN_PASSWORD >= rec.credential.Password.Length), "_credential.Password.Length exceeds the max length for this value"); 7147encryptedPasswordLengthInBytes = rec.credential.Password.Length * 2; 7156encryptedChangePasswordLengthInBytes = rec.newSecurePassword.Length * 2; 7306if (!ADP.IsEmpty(rec.newPassword) || (rec.newSecurePassword != null && rec.newSecurePassword.Length != 0)) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
2649int lengthInBytes = secureString.Length * 2;