2 // System.Runtime.InteropServices._EventInfo interface
5 // Kazuki Oikawa (kazuki@panicode.com)
11 using System.Reflection;
13 namespace System.Runtime.InteropServices
15 [CLSCompliant (false)]
16 [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
17 [Guid ("9DE59C64-D889-35A1-B897-587D74469E5B")]
18 [TypeLibImportClass (typeof (EventInfo))]
22 public interface _EventInfo
24 void AddEventHandler (object target, Delegate handler);
26 bool Equals (object other);
28 MethodInfo GetAddMethod ();
30 MethodInfo GetAddMethod (bool nonPublic);
32 object[] GetCustomAttributes (bool inherit);
34 object[] GetCustomAttributes (Type attributeType, bool inherit);
38 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
40 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
42 void GetTypeInfoCount (out uint pcTInfo);
44 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
45 IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
47 MethodInfo GetRaiseMethod ();
49 MethodInfo GetRaiseMethod (bool nonPublic);
51 MethodInfo GetRemoveMethod ();
53 MethodInfo GetRemoveMethod (bool nonPublic);
57 bool IsDefined (Type attributeType, bool inherit);
59 void RemoveEventHandler (object target, Delegate handler);
63 EventAttributes Attributes {get;}
65 Type DeclaringType {get;}
67 Type EventHandlerType {get;}
69 bool IsMulticast {get;}
71 bool IsSpecialName {get;}
73 MemberTypes MemberType {get;}
77 Type ReflectedType {get;}