Bagikan melalui


MetadataBuilder.AddDocument Metode

Definisi

Menambahkan informasi debug dokumen.

public:
 System::Reflection::Metadata::DocumentHandle AddDocument(System::Reflection::Metadata::BlobHandle name, System::Reflection::Metadata::GuidHandle hashAlgorithm, System::Reflection::Metadata::BlobHandle hash, System::Reflection::Metadata::GuidHandle language);
public System.Reflection.Metadata.DocumentHandle AddDocument (System.Reflection.Metadata.BlobHandle name, System.Reflection.Metadata.GuidHandle hashAlgorithm, System.Reflection.Metadata.BlobHandle hash, System.Reflection.Metadata.GuidHandle language);
member this.AddDocument : System.Reflection.Metadata.BlobHandle * System.Reflection.Metadata.GuidHandle * System.Reflection.Metadata.BlobHandle * System.Reflection.Metadata.GuidHandle -> System.Reflection.Metadata.DocumentHandle
Public Function AddDocument (name As BlobHandle, hashAlgorithm As GuidHandle, hash As BlobHandle, language As GuidHandle) As DocumentHandle

Parameter

name
BlobHandle

Blob nama dokumen.

hashAlgorithm
GuidHandle

THe GUID dari algoritma hash yang digunakan untuk menghitung nilai hash.

hash
BlobHandle

Hash konten dokumen.

language
GuidHandle

GUID bahasa.

Mengembalikan

Handel ke dokumen yang ditambahkan.

Keterangan

Untuk informasi selengkapnya tentang name, lihat https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#document-name-blob.

Untuk informasi selengkapnya tentang nilai umum untuk hashAlgorithm, lihat https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#document-table-0x30.

Untuk informasi selengkapnya tentang nilai umum untuk language, lihat https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#document-table-0x30.

Berlaku untuk