BlobReader.ReadConstant(ConstantTypeCode) 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.
Reads a constant value (see ECMA-335 Partition II section 22.9) from the current position.
public:
System::Object ^ ReadConstant(System::Reflection::Metadata::ConstantTypeCode typeCode);
public object? ReadConstant (System.Reflection.Metadata.ConstantTypeCode typeCode);
public object ReadConstant (System.Reflection.Metadata.ConstantTypeCode typeCode);
member this.ReadConstant : System.Reflection.Metadata.ConstantTypeCode -> obj
Public Function ReadConstant (typeCode As ConstantTypeCode) As Object
Parameters
- typeCode
- ConstantTypeCode
Returns
A boxed constant value. To avoid allocating the object use Read* methods directly.
Exceptions
Error while reading from the blob.
typeCode
is not a valid ConstantTypeCode.
Remarks
Constants of type String are encoded as UTF16 strings, use ReadUTF16(Int32) to read them.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.