MetadataBuilder.GetOrAddConstantBlob(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.