ISymUnmanagedReader::GetSymAttribute Method
Gets a custom attribute based upon its name. Unlike metadata custom attributes, these custom attributes are held in the symbol store.
HRESULT GetSymAttribute (
[in] mdToken parent,
[in] WCHAR *name,
[in] ULONG32 cBuffer,
[out] ULONG32 *pcBuffer,
[out, size_is (cBuffer),
length_is (*pcBuffer)] BYTE buffer[]);
Parameters
parent
[in] The metadata token for the object for which the attribute is requested.name
[in] A pointer to the variable that indicates the attribute to retrieve.cBuffer
[in] The size of the buffer array.pcBuffer
[out] A pointer to the variable that receives the length of the attribute data.buffer
[out] A pointer to the variable that receives the attribute data.
Return Value
S_OK if the method succeeds; otherwise, E_FAIL or some other error code..
Requirements
Header: CorSym.idl, CorSym.h