Hash.SHA1 プロパティ

定義

アセンブリの SHA1 ハッシュ値を取得します。

public:
 property cli::array <System::Byte> ^ SHA1 { cli::array <System::Byte> ^ get(); };
public byte[] SHA1 { get; }
member this.SHA1 : byte[]
Public ReadOnly Property SHA1 As Byte()

プロパティ値

Byte[]

アセンブリの SHA1 ハッシュ値を表すバイト配列。

次の例では、SHA1myAssembly ハッシュを計算し、hashcodeに格納します。

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

注釈

コンストラクターで指定されたアセンブリは、ハッシュ計算のバイトを提供します。

SHA-1 の競合の問題のため、Microsoft では SHA-256 をお勧めします。

適用対象