MetadataBuilder.AddDocument 方法

定义

添加文档调试信息。

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

参数

name
BlobHandle

文档名称 blob。

hashAlgorithm
GuidHandle

哈希算法的 GUID,用于计算 hash 的值。

hash
BlobHandle

文档内容的哈希。

language
GuidHandle

语言的 GUID。

返回

已添加的文档的句柄。

注解

有关 name的更多信息,请参见https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#document-name-blob

有关 的 hashAlgorithm通用值的详细信息,请参阅 https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#document-table-0x30

有关 的 language通用值的详细信息,请参阅 https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#document-table-0x30

适用于