次の方法で共有


Hash.SHA1 プロパティ

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

Public ReadOnly Property SHA1 As Byte ()
[C#]
public byte[] SHA1 {get;}
[C++]
public: __property unsigned char get_SHA1();
[JScript]
public function get SHA1() : Byte[];

プロパティ値

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

解説

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

使用例

[Visual Basic, C#, C++] myAssemblySHA1 ハッシュを計算し、 hashcode に格納する例を次に示します。

 
Dim hash As New Hash(myAssembly)
Dim hashcode As Byte() = hash.SHA1

[C#] 
Hash hash = new Hash ( myAssembly );
Byte[] hashcode = hash.SHA1;

[C++] 
Hash* hash = new Hash ( myAssembly );
Byte hashcode[] = hash->SHA1;

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

Hash クラス | Hash メンバ | System.Security.Policy 名前空間