Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Enumerates MemberDef tokens representing members of the specified type with the specified name.
HRESULT EnumMembersWithName (
[in, out] HCORENUM *phEnum,
[in] mdTypeDef cl,
[in] LPCWSTR szName,
[out] mdToken rMembers[],
[in] ULONG cMax,
[out] ULONG *pcTokens
);
phEnum
[in, out] A pointer to the enumerator.
cl
[in] A TypeDef token representing the type with members to enumerate.
szName
[in] The member name that limits the scope of the enumerator.
rMembers
[out] The array used to store the MemberDef tokens.
cMax
[in] The maximum size of the rMembers
array.
pcTokens
[out] The actual number of MemberDef tokens returned in rMembers
.
This method enumerates fields and methods, but not properties or events. Unlike IMetaDataImport::EnumMembers, EnumMembersWithName
discards all field and member tokens that do not have the specified name.
HRESULT | Description |
---|---|
S_OK |
EnumTypeDefs returned successfully. |
S_FALSE |
There are no MemberDef tokens to enumerate. In that case, pcTokens is zero. |
Platforms: See System Requirements.
Header: Cor.h
Library: Included as a resource in MsCorEE.dll
.NET Framework Versions: Available since 1.0
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now