Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetaDataImport::GetCustomAttributeProps method

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

Syntax


HRESULT GetCustomAttributeProps(
  [in]                               mdCustomAttribute cv,
  [out, unique]                      mdToken           *ptkObj,
  [out, unique]                      mdToken           *ptkType,
  [out, size_is(, *pcbBlob), unique] BYTE              const,
  [out, unique]                      ULONG             *pcbBlob
);

Parameters

cv [in]

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

ptkObj [out]

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 for more information about the token types.

ptkType [out]

An mdMethodDef or mdMemberRef metadata token representing the Type of the returned custom attribute.

const [out]

A pointer to an array of data that is the value of the custom attribute.

pcbBlob [out]

The size in bytes of the data returned in const.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

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

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show:
© 2017 Microsoft