次の方法で共有


IMetaDataImport::EnumCustomAttributes Method

指定した型またはメンバーに関連付けられているカスタム属性定義トークンを列挙します。

Syntax

HRESULT EnumCustomAttributes (
   [in, out] HCORENUM      *phEnum,
   [in]  mdToken            tk,
   [in]  mdToken            tkType,
   [out] mdCustomAttribute  rCustomAttributes[],
   [in]  ULONG              cMax,
   [out, optional] ULONG   *pcCustomAttributes
);

Parameters

phEnum [入力、出力]返された列挙子へのポインター。

tk [in]列挙のスコープのトークン。すべてのカスタム属性の場合は 0。

tkType [in]列挙する属性の型のコンストラクターのトークン。またはすべての型に対して null

rCustomAttributes [out]カスタム属性トークンの配列。

cMax [in] rCustomAttributes 配列の最大サイズ。

pcCustomAttributes [出力、省略可能] rCustomAttributesで返されるトークン値の実際の数。

Return Value

HRESULT Description
S_OK EnumCustomAttributes が正常に返されました。
S_FALSE 列挙するカスタム属性はありません。 その場合、 pcCustomAttributes は 0 です。

Requirements

プラットフォーム:サポートされている .NET オペレーティング システムを参照してください。

Header: Cor.h

Library: CorGuids.lib

See also