13 [__DynamicallyInvokable]
14 [PermissionSet(
SecurityAction.InheritanceDemand, Name =
"FullTrust")]
23 [__DynamicallyInvokable]
26 [__DynamicallyInvokable]
32 [__DynamicallyInvokable]
35 [__DynamicallyInvokable]
44 [__DynamicallyInvokable]
47 [__DynamicallyInvokable]
56 [__DynamicallyInvokable]
59 [__DynamicallyInvokable]
69 [__DynamicallyInvokable]
72 [__DynamicallyInvokable]
76 ParameterInfo[] parametersNoCopy = addMethod.GetParametersNoCopy();
78 for (
int i = 0; i < parametersNoCopy.Length; i++)
93 [__DynamicallyInvokable]
96 [__DynamicallyInvokable]
107 [__DynamicallyInvokable]
110 [__DynamicallyInvokable]
124 [__DynamicallyInvokable]
127 if ((
object)left == right)
131 if ((
object)left ==
null || (
object)right ==
null || left is RuntimeEventInfo || right is RuntimeEventInfo)
135 return left.
Equals(right);
143 [__DynamicallyInvokable]
146 return !(left == right);
153 [__DynamicallyInvokable]
156 return base.Equals(obj);
161 [__DynamicallyInvokable]
164 return base.GetHashCode();
183 [__DynamicallyInvokable]
192 [__DynamicallyInvokable]
201 [__DynamicallyInvokable]
213 [__DynamicallyInvokable]
221 [__DynamicallyInvokable]
229 [__DynamicallyInvokable]
244 [DebuggerStepThrough]
246 [__DynamicallyInvokable]
250 if (addMethod ==
null)
258 addMethod.Invoke(target,
new object[1]
273 [DebuggerStepThrough]
275 [__DynamicallyInvokable]
279 if (removeMethod ==
null)
283 ParameterInfo[] parametersNoCopy = removeMethod.GetParametersNoCopy();
288 removeMethod.Invoke(target,
new object[1]
316 throw new NotImplementedException();
328 throw new NotImplementedException();
341 void _EventInfo.
Invoke(uint dispIdMember, [
In] ref Guid riid, uint lcid,
short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
343 throw new NotImplementedException();
Obtains information about the attributes of a member and provides access to member metadata.
Discovers the attributes of a parameter and provides access to parameter metadata.
void GetTypeInfoCount(out uint pcTInfo)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
MethodInfo GetAddMethod()
Returns the method used to add an event handler delegate to the event source.
static bool operator==(EventInfo left, EventInfo right)
Indicates whether two T:System.Reflection.EventInfo objects are equal.
MethodInfo GetRaiseMethod()
Returns the method that is called when the event is raised.
A token that is returned when an event handler is added to a Windows Runtime event....
Discovers the attributes of a method and provides access to method metadata.
virtual bool IsMulticast
Gets a value indicating whether the event is multicast.
override int GetHashCode()
Returns the hash code for this instance.
MethodInfo GetRemoveMethod()
Returns the method used to remove an event handler delegate from the event source.
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
Provides access to properties and methods exposed by an object.
Represents a multicast delegate; that is, a delegate that can have more than one element in its invoc...
virtual Type ReturnType
Gets the return type of this method.
bool IsSpecialName
Gets a value indicating whether the EventInfo has a name with a special meaning.
virtual MethodInfo [] GetOtherMethods(bool nonPublic)
Returns the methods that have been associated with the event in metadata using the ....
override bool Equals(object obj)
Returns a value that indicates whether this instance is equal to a specified object.
virtual bool IsSubclassOf(Type c)
Determines whether the current T:System.Type derives from the specified T:System.Type.
SecurityAction
Specifies the security actions that can be performed using declarative security.
Provides information about, and means to manipulate, the current environment and platform....
virtual void RemoveEventHandler(object target, Delegate handler)
Removes an event handler from an event source.
virtual Type EventHandlerType
Gets the Type object of the underlying event-handler delegate associated with this event.
virtual void AddEventHandler(object target, Delegate handler)
Adds an event handler to an event source.
virtual MethodInfo RemoveMethod
Gets the MethodInfo object for removing a method of the event, including non-public methods.
Discovers the attributes of an event and provides access to event metadata.
Represents a delegate, which is a data structure that refers to a static method or to a class instanc...
Represents type declarations: class types, interface types, array types, value types,...
Exposes the public members of the T:System.Reflection.EventInfo class to unmanaged code.
MethodInfo [] GetOtherMethods()
Returns the public methods that have been associated with an event in metadata using the ....
virtual MethodInfo AddMethod
Gets the T:System.Reflection.MethodInfo object for the M:System.Reflection.EventInfo....
EventAttributes
Specifies the attributes of an event.
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo)
Retrieves the type information for an object, which can be used to get the type information for an in...
abstract EventAttributes Attributes
Gets the attributes for this event.
Specifies that the class can be serialized.
virtual Type ParameterType
Gets the Type of this parameter.
The exception that is thrown when a method call is invalid for the object's current state.
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
Maps a set of names to a corresponding set of dispatch identifiers.
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
Specifies that the parameter is an input parameter.
new Type GetType()
Provides COM objects with version-independent access to the M:System.Object.GetType method.
MemberTypes
Marks each type of member that is defined as a derived class of T:System.Reflection....
override MemberTypes MemberType
Gets a T:System.Reflection.MemberTypes value indicating that this member is an event.
The exception that is thrown when a requested method or operation is not implemented.
virtual bool IsAssignableFrom(Type c)
Determines whether an instance of a specified type can be assigned to an instance of the current type...
static bool operator !=(EventInfo left, EventInfo right)
Indicates whether two T:System.Reflection.EventInfo objects are not equal.
virtual MethodInfo RaiseMethod
Gets the method that is called when the event is raised, including non-public methods.