Bewerken

Share via


MetadataBuilder.GetOrAddBlob Method

Definition

Overloads

GetOrAddBlob(BlobBuilder)

Adds the specified blob from an immutable byte array to the Blob heap, if it's not there already.

GetOrAddBlob(Byte[])

Adds the specified blob to the Blob heap, if it's not there already.

GetOrAddBlob(ImmutableArray<Byte>)

Adds the specified blob from a byte array to the Blob heap, if it's not there already.

GetOrAddBlob(BlobBuilder)

Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs

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

Parameters

value
BlobBuilder

The blob builder instance containing the blob.

Returns

A handle to the added or existing blob.

Exceptions

value is null.

Applies to

GetOrAddBlob(Byte[])

Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs

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

Parameters

value
Byte[]

The array containing the blob.

Returns

A handle to the added or existing blob.

Exceptions

value is null.

Applies to

GetOrAddBlob(ImmutableArray<Byte>)

Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs

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

Parameters

value
ImmutableArray<Byte>

The array containing the blob.

Returns

A handle to the added or existing blob.

Exceptions

value is null.

Applies to