Partager via


ICorDebugAppDomain2::GetArrayOrPointerType Method

Gets an array of the specified type, or a pointer or reference to the specified type.

HRESULT GetArrayOrPointerType (
    [in]  CorElementType    elementType,
    [in]  ULONG32           nRank,
    [in]  ICorDebugType     *pTypeArg,
    [out] ICorDebugType     **ppType
);

Parameters

  • elementType
    [in] A value of the CorElementType enumeration that specifies the underlying native type (an array, pointer, or reference) to be created.

  • nRank
    [in] The rank (that is, number of dimensions) of the array. This value must be 0 if elementType specifies a pointer or reference type.

  • pTypeArg
    [in] A pointer to an ICorDebugType object that represents the type of array, pointer, or reference to be created.

  • ppType
    [out] A pointer to the address of an ICorDebugType object that represents the constructed array, pointer type, or reference type.

Remarks

The value of elementType must be one of the following:

  • ELEMENT_TYPE_PTR

  • ELEMENT_TYPE_BYREF

  • ELEMENT_TYPE_ARRAY or ELEMENT_TYPE_SZARRAY

If the value of elementType is ELEMENT_TYPE_PTR or ELEMENT_TYPE_BYREF, nRank must be zero.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Concepts

ICorDebugAppDomain2 Interface