Freigeben über


Hash.MD5-Eigenschaft

Ruft den MD5-Hashwert für die Assembly ab.

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public ReadOnly Property MD5 As Byte()
'Usage
Dim instance As Hash
Dim value As Byte()

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

Eigenschaftenwert

Ein Bytearray, das den MD5-Hashwert für die Assembly darstellt.

Hinweise

Die im Klassenkonstruktor angegebene Assembly stellt die Bytes für die Hashberechnung bereit.

Beispiel

Im folgenden Beispiel wird der MD5-Hashwert für myAssembly berechnet und in hashcode gespeichert.

Dim hash As New Hash(myAssembly)
Dim hashcode As Byte() = hash.MD5
Hash hash = new Hash ( myAssembly );
Byte[] hashcode = hash.MD5;
Hash^ hash = gcnew Hash( myAssembly );
array<Byte>^ hashcode = hash->MD5;
Hash hash = new Hash(myAssembly);
ubyte hashcode[] = hash.get_MD5();

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

Hash-Klasse
Hash-Member
System.Security.Policy-Namespace