Rediger

Del via


MetadataBuilder.GetOrAddString(String) Method

Definition

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

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

Parameters

value
String

The string to add.

Returns

A handle to the added or existing string.

Exceptions

value is null.

Applies to