IMetaDataImport::GetCustomAttributeProps Method


Gets the value of the custom attribute, given its metadata token.

HRESULT GetCustomAttributeProps (
   [in]            mdCustomAttribute   cv,
   [out, optional] mdToken             *ptkObj,
   [out, optional] mdToken             *ptkType,
   [out, optional] void const          **ppBlob,
   [out, optional] ULONG               *pcbSize


[in] A metadata token that represents the custom attribute to be retrieved.


[out, optional] A metadata token representing the object that the custom attribute modifies. This value can be any type of metadata token except mdCustomAttribute.


[out, optional] An mdMethodDef or mdMemberRef metadata token representing the Type of the returned custom attribute.


[out, optional] A pointer to an array of data that is the value of the custom attribute.


[out, optional] The size in bytes of the data returned in *ppBlob.

A custom attribute is stored as an array of data, the format which is understood by the metadata engine.


Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0