다음을 통해 공유


HashAlgorithm.Hash 속성

계산된 해시 코드의 값을 가져옵니다.

네임스페이스: System.Security.Cryptography
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
Public Overridable ReadOnly Property Hash As Byte()
‘사용 방법
Dim instance As HashAlgorithm
Dim value As Byte()

value = instance.Hash
public virtual byte[] Hash { get; }
public:
virtual property array<unsigned char>^ Hash {
    array<unsigned char>^ get ();
}
/** @property */
public byte[] get_Hash ()
public function get Hash () : byte[]

속성 값

계산된 해시 코드의 현재 값입니다.

예외

예외 형식 조건

CryptographicUnexpectedOperationException

HashValue이 Null 참조(Visual Basic의 경우 Nothing)인 경우

설명

Hash 속성은 바이트 배열이고, HashSize 속성은 비트를 나타내는 값입니다. 따라서 Hash에 있는 요소의 수는 HashSize 크기의 8분의 1입니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0에서 지원

참고 항목

참조

HashAlgorithm 클래스
HashAlgorithm 멤버
System.Security.Cryptography 네임스페이스

기타 리소스

암호화 서비스