BlobReader.ReadConstant(ConstantTypeCode) Metodo

Definizione

Legge un valore costante (vedere la sezione ECMA-335 Partition II sezione 22.9) dalla posizione corrente.

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

Parametri

typeCode
ConstantTypeCode

Valori restituiti

Valore costante boxed. Per evitare di allocare l'oggetto, usare direttamente i metodi Read*.

Eccezioni

Errore durante la lettura dal BLOB.

typeCode non è un ConstantTypeCodevalido.

Commenti

Le costanti di tipo String vengono codificate come stringhe UTF16, usate ReadUTF16(Int32) per leggerle.

Si applica a