Freigeben über


Hash.SHA1-Eigenschaft

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

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

Syntax

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

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

Eigenschaftenwert

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

Hinweise

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

Beispiel

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

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

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