Düzenle

Aracılığıyla paylaş


CodeChecksumPragma Constructors

Definition

Initializes a new instance of the CodeChecksumPragma class.

Overloads

CodeChecksumPragma()

Initializes a new instance of the CodeChecksumPragma class.

CodeChecksumPragma(String, Guid, Byte[])

Initializes a new instance of the CodeChecksumPragma class using a file name, a GUID representing the checksum algorithm, and a byte stream representing the checksum data.

CodeChecksumPragma()

Source:
CodeChecksumPragma.cs
Source:
CodeChecksumPragma.cs
Source:
CodeChecksumPragma.cs
Source:
CodeChecksumPragma.cs

Initializes a new instance of the CodeChecksumPragma class.

public:
 CodeChecksumPragma();
public CodeChecksumPragma ();
Public Sub New ()

Examples

The following code example shows the use of the CodeChecksumPragma constructor. This code example is part of a larger example provided for the CodeChecksumPragma class.

CodeChecksumPragma pragma1 = new CodeChecksumPragma();
Dim pragma1 As New CodeChecksumPragma()

Applies to

CodeChecksumPragma(String, Guid, Byte[])

Source:
CodeChecksumPragma.cs
Source:
CodeChecksumPragma.cs
Source:
CodeChecksumPragma.cs
Source:
CodeChecksumPragma.cs

Initializes a new instance of the CodeChecksumPragma class using a file name, a GUID representing the checksum algorithm, and a byte stream representing the checksum data.

public:
 CodeChecksumPragma(System::String ^ fileName, Guid checksumAlgorithmId, cli::array <System::Byte> ^ checksumData);
public CodeChecksumPragma (string fileName, Guid checksumAlgorithmId, byte[] checksumData);
new System.CodeDom.CodeChecksumPragma : string * Guid * byte[] -> System.CodeDom.CodeChecksumPragma
Public Sub New (fileName As String, checksumAlgorithmId As Guid, checksumData As Byte())

Parameters

fileName
String

The path to the checksum file.

checksumAlgorithmId
Guid

A Guid that identifies the checksum algorithm to use.

checksumData
Byte[]

A byte array that contains the checksum data.

Examples

The following code example shows the use of the CodeChecksumPragma constructor. This code example is part of a larger example provided for the CodeChecksumPragma class.

CodeChecksumPragma pragma2 = new CodeChecksumPragma("test.txt", HashSHA1, new byte[] { 0xBB, 0xBB, 0xBB });
Dim pragma2 As New CodeChecksumPragma("test.txt", HashSHA1, New Byte() {&HBB, &HBB, &HBB})

Remarks

For more information on the checksumAlgorithmId parameter, see the ChecksumAlgorithmId property.

Applies to