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