System.Net.NetworkCredential.InternalGetPassword C# (CSharp) Метод

InternalGetPassword() приватный Метод

private InternalGetPassword ( ) : string
Результат string
        internal string InternalGetPassword() {
            // GlobalLog.Print("NetworkCredential::get_Password: returning \"" + m_password + "\"");
            return m_password;
        }

Usage Example

Пример #1
0
        // this method is only called as part of an assert
        internal bool IsEqualTo(object compObject)
        {
            if ((object)compObject == null)
            {
                return(false);
            }
            if ((object)this == (object)compObject)
            {
                return(true);
            }
            NetworkCredential compCred = compObject as NetworkCredential;

            if ((object)compCred == null)
            {
                return(false);
            }
#if FEATURE_PAL
            return(InternalGetUserName() == compCred.InternalGetUserName() &&
                   InternalGetPassword() == compCred.InternalGetPassword() &&
                   InternalGetDomain() == compCred.InternalGetDomain());
#else //!FEATURE_PAL
            return(InternalGetUserName() == compCred.InternalGetUserName() &&
                   InternalGetDomain() == compCred.InternalGetDomain() &&
                   UnsafeNclNativeMethods.SecureStringHelper.AreEqualValues(InternalGetSecurePassword(),
                                                                            compCred.InternalGetSecurePassword()));
#endif //!FEATURE_PAL
        }
All Usage Examples Of System.Net.NetworkCredential::InternalGetPassword