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: See .NET Framework System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0