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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.