Freigeben über


IMetaDataImport::GetCustomAttributeProps Method

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

HRESULT GetCustomAttributeProps (
    mdCustomAttribute   cv,
    mdToken             *ptkObj,
    mdToken             *ptkType,
    void const          **ppBlob,
    ULONG               *pcbSize
);

Parameters

Parameter Description

cv

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

ptkObj

[out, optional] A metadata token representing the object that the custom attribute modifies. This value can be any type of metadata token except mdCustomAttribute. See Metadata Tokens Overview for more information about the token types.

ptkType

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

ppBlob

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

pcbSize

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

Remarks

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

Requirements

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

Header: Cor.h

Library: Included as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface