Метод ICorDebugType::GetTypeICorDebugType::GetType Method
Возвращает значение Корелементтипе, описывающее собственный тип общеязыковой среды выполнения (CLR), Type представленной этим объектом ICorDebugType.Gets a CorElementType value that describes the native type of the common language runtime (CLR) Type represented by this ICorDebugType.
СинтаксисSyntax
HRESULT GetType (
[out] CorElementType *ty
);
ПараметрыParameters
ty
заполняет Указатель на значение CorElementType
перечисления, указывающее среду CLR Type , которую представляет этот объект ICorDebugType
.[out] A pointer to a value of the CorElementType
enumeration that indicates the CLR Type that this ICorDebugType
represents.
RemarksRemarks
Если значение параметра ty
— ELEMENT_TYPE_CLASS или ELEMENT_TYPE_VALUETYPE, можно вызвать метод ICorDebugType:: coclass , чтобы получить тип без экземпляров для универсального типа; в противном случае не вызывайте ICorDebugType::GetClass
.If the value of ty
is either ELEMENT_TYPE_CLASS or ELEMENT_TYPE_VALUETYPE, the ICorDebugType::GetClass method may be called to get the uninstantiated type for a generic type; otherwise, do not call ICorDebugType::GetClass
.
ТребованияRequirements
Платформы: см. раздел Требования к системе.Platforms: See System Requirements.
Заголовок: CorDebug.idl, CorDebug.hHeader: CorDebug.idl, CorDebug.h
Библиотека: CorGuids.libLibrary: CorGuids.lib
Платформа .NET Framework версии:Доступно с версии 2.0Available since 2.0.NET Framework Versions: Доступно с версии 2.0Available since 2.0