Share via


ICorDebugAppDomain::GetName Method

Gets the name of the application domain.

HRESULT GetName (
    [in]  ULONG32           cchName,
    [out] ULONG32           *pcchName,
    [out, size_is(cchName), length_is(*pcchName)] 
         WCHAR              szName[]
);

Parameters

  • cchName
    [in] The size of the szName array. Set this value to zero to put this method in query mode.

  • pcchName
    [out] A pointer to the size of the name or the number of characters actually returned in szName. In query mode, this value lets the caller know how large a buffer to allocate for the name.

  • szName
    [out] An array that stores the name of the application domain.

Remarks

A debugger calls the GetName method once to get the size of a buffer needed for the name. The debugger allocates the buffer, and then calls the method a second time to fill the buffer. The first call, to get the size of the name, is referred to as query mode.

Requirements

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

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

ICorDebugAppDomain Interface