語言

MetadataBuilder.GetOrAddDocumentName(String) 方法

定義

編碼一個除錯文件名稱,並加入 Blob 堆積(如果還沒在的話)。

public:
 System::Reflection::Metadata::BlobHandle GetOrAddDocumentName(System::String ^ value);
public System.Reflection.Metadata.BlobHandle GetOrAddDocumentName(string value);
member this.GetOrAddDocumentName : string -> System.Reflection.Metadata.BlobHandle
Public Function GetOrAddDocumentName (value As String) As BlobHandle

參數

value
String

要加文件名稱。

傳回

一個已新增或已存在文件名稱 blob 的代號。

例外狀況

value 是 null。

備註

欲了解更多關於文件名稱塊的資訊,請參見: https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#DocumentNameBlob

適用於