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 the properties and the property-change events to which the specified method is related.
HRESULT EnumMethodSemantics (
[in, out] HCORENUM *phEnum,
[in] mdMethodDef mb,
[out] mdToken rEventProp[],
[in] ULONG cMax,
[out] ULONG *pcEventProp
);
phEnum
[in, out] A pointer to the enumerator. This must be NULL for the first call of this method.
mb
[in] A MethodDef token that limits the scope of the enumeration.
rEventProp
[out] The array used to store the events or properties.
cMax
[in] The maximum size of the rEventProp
array.
pcEventProp
[out] The number of events or properties returned in rEventProp
.
HRESULT | Description |
---|---|
S_OK |
EnumMethodSemantics returned successfully. |
S_FALSE |
There are no events or properties to enumerate. In that case, pcEventProp is zero. |
Many common language runtime types define PropertyChanged
events and On
PropertyChanged
methods related to their properties. For example, the System.Windows.Forms.Control type defines a Font property, a FontChanged event, and an OnFontChanged method. The set accessor method of the Font property calls OnFontChanged method, which in turn raises the FontChanged event. You would call EnumMethodSemantics
using the MethodDef for OnFontChanged to get references to the Font property and the FontChanged event.
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