Edit

Share via


MetadataBuilder.GetOrAddConstantBlob(Object) Method

Definition

Encodes a constant value to a blob and adds it to the Blob heap, if it's not there already. Uses UTF16 to encode string constants.

public:
 System::Reflection::Metadata::BlobHandle GetOrAddConstantBlob(System::Object ^ value);
public System.Reflection.Metadata.BlobHandle GetOrAddConstantBlob (object? value);
public System.Reflection.Metadata.BlobHandle GetOrAddConstantBlob (object value);
member this.GetOrAddConstantBlob : obj -> System.Reflection.Metadata.BlobHandle
Public Function GetOrAddConstantBlob (value As Object) As BlobHandle

Parameters

value
Object

The constant value to add.

Returns

A handle to the added or existing blob.

Applies to