CodeChecksumPragma Constructor (String, Guid, Byte[])


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public CodeChecksumPragma(
	string fileName,
	Guid checksumAlgorithmId,
	byte[] checksumData


Type: System.String

The path to the checksum file.

Type: System.Guid

A Guid that identifies the checksum algorithm to use.

Type: System.Byte[]

A byte array that contains the checksum data.

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

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 });

.NET Framework
Available since 2.0
Return to top