MetadataBuilder.GetOrAddBlob 方法

定义

重载

GetOrAddBlob(BlobBuilder)

将指定的 blob 从不可变字节数组添加到 Blob 堆(如果尚不存在)。Adds the specified blob from an immutable byte array to the Blob heap, if it's not there already.

GetOrAddBlob(Byte[])

将指定的 blob 添加到 Blob 堆(如果尚不存在)。Adds the specified blob to the Blob heap, if it's not there already.

GetOrAddBlob(ImmutableArray<Byte>)

将指定的 blob 从字节数组添加到 Blob 堆(如果尚不存在)。Adds the specified blob from a byte array to the Blob heap, if it's not there already.

GetOrAddBlob(BlobBuilder)

将指定的 blob 从不可变字节数组添加到 Blob 堆(如果尚不存在)。Adds the specified blob from an immutable byte array to the Blob heap, if it's not there already.

public:
 System::Reflection::Metadata::BlobHandle GetOrAddBlob(System::Reflection::Metadata::BlobBuilder ^ value);
public System.Reflection.Metadata.BlobHandle GetOrAddBlob (System.Reflection.Metadata.BlobBuilder value);
member this.GetOrAddBlob : System.Reflection.Metadata.BlobBuilder -> System.Reflection.Metadata.BlobHandle
Public Function GetOrAddBlob (value As BlobBuilder) As BlobHandle

参数

value
BlobBuilder

包含 blob 的 blob 生成器实例。The blob builder instance containing the blob.

返回

BlobHandle

已添加的或现有的 blob 的句柄。A handle to the added or existing blob.

例外

valuenullvalue is null.

适用于

GetOrAddBlob(Byte[])

将指定的 blob 添加到 Blob 堆(如果尚不存在)。Adds the specified blob to the Blob heap, if it's not there already.

public:
 System::Reflection::Metadata::BlobHandle GetOrAddBlob(cli::array <System::Byte> ^ value);
public System.Reflection.Metadata.BlobHandle GetOrAddBlob (byte[] value);
member this.GetOrAddBlob : byte[] -> System.Reflection.Metadata.BlobHandle
Public Function GetOrAddBlob (value As Byte()) As BlobHandle

参数

value
Byte[]

包含 blob 的数组。The array containing the blob.

返回

BlobHandle

已添加的或现有的 blob 的句柄。A handle to the added or existing blob.

例外

valuenullvalue is null.

适用于

GetOrAddBlob(ImmutableArray<Byte>)

将指定的 blob 从字节数组添加到 Blob 堆(如果尚不存在)。Adds the specified blob from a byte array to the Blob heap, if it's not there already.

public:
 System::Reflection::Metadata::BlobHandle GetOrAddBlob(System::Collections::Immutable::ImmutableArray<System::Byte> value);
public System.Reflection.Metadata.BlobHandle GetOrAddBlob (System.Collections.Immutable.ImmutableArray<byte> value);
member this.GetOrAddBlob : System.Collections.Immutable.ImmutableArray<byte> -> System.Reflection.Metadata.BlobHandle
Public Function GetOrAddBlob (value As ImmutableArray(Of Byte)) As BlobHandle

参数

value
ImmutableArray<Byte>

包含 blob 的数组。The array containing the blob.

返回

BlobHandle

已添加的或现有的 blob 的句柄。A handle to the added or existing blob.

例外

valuenullvalue is null.

适用于