次の方法で共有


ConnectionCredential.GetHashCode メソッド

定義

接続資格情報のハッシュ コードを返します。

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

戻り値

オブジェクトの ConnectionCredential ハッシュ コード。

次の例では、ハッシュ コードを計算します。

public override int GetHashCode() {
    if (UseSystemAccount) {
        return UseSystemAccount.GetHashCode();
    } else {
        return String.Concat(Domain, Password, UserName,
            UseBasicAuthentication.ToString()).GetHashCode();
    }
} 

適用対象