MetadataBuilder.GetOrAddBlobUTF16(String) Method

Definition

Encodes a string using UTF16 encoding to a blob and adds it to the Blob heap, if it's not there already.

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

Parameters

value
String

The string to add.

Returns

A handle to the added or existing blob.

Exceptions

value is null.

Applies to