ערוך

שתף באמצעות


IXCLRDataValue Interface

Provides methods for querying information about a data value.

Note

This API was originally designed for internal use in the runtime. Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.

Methods

Method Description
GetAssociatedValue Gets the value implicitly associated with this value.
GetArrayElement Gets the value representing a given element in the array.
StartEnumFieldsByName Provides a handle to enumerate the fields of this value by name.
EnumFieldByName Enumerates the fields of this value by name.
EndEnumFieldsByName Releases the resources used by internal iterators used during field enumeration.
GetFlags Gets state flags of this value.
GetNumFields2 Gets the number of fields in the value.
GetArrayProperties Gets the definition of an array value.
StartEnumFields Provides a handle to enumerate the fields of this value.
EnumField Enumerates the fields of this value.
EndEnumFields Releases the resources used by internal iterators used during field enumeration.
GetString Gets the length and contents of a string value.
GetBytes Copy between an object and a buffer.
Request Requests to populate the buffer given with the value's data.
GetType Gets the type of the value.
GetSize Gets the size (in bytes) of the value.
GetAddress Gets the address of the object if the object is a single continuous piece of data in memory.
GetNumLocations Gets the number of locations the value's data is spread across.
GetAssociatedType Gets the type of the value implicitly associated with this value.

Remarks

This interface lives inside the runtime and is not exposed through any headers or library files. However, it's a COM interface that derives from IUnknown with GUID 96EC93C7-1000-4e93-8991-98D8766E6666 that can be obtained through the usual COM mechanisms.

Requirements

Platforms: See System Requirements.
Header: None
Library: None
.NET Framework Versions: Available since 4.7

See also