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))]
19 public interface _EventInfo
21 void AddEventHandler (object target, Delegate handler);
23 bool Equals (object obj);
25 MethodInfo GetAddMethod ();
27 MethodInfo GetAddMethod (bool nonPublic);
29 object[] GetCustomAttributes (bool inherit);
31 object[] GetCustomAttributes (Type attributeType, bool inherit);
35 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
37 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
39 void GetTypeInfoCount (out uint pcTInfo);
41 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
42 IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
44 MethodInfo GetRaiseMethod ();
46 MethodInfo GetRaiseMethod (bool nonPublic);
48 MethodInfo GetRemoveMethod ();
50 MethodInfo GetRemoveMethod (bool nonPublic);
54 bool IsDefined (Type attributeType, bool inherit);
56 void RemoveEventHandler (object target, Delegate handler);
60 EventAttributes Attributes {get;}
62 Type DeclaringType {get;}
64 Type EventHandlerType {get;}
66 bool IsMulticast {get;}
68 bool IsSpecialName {get;}
70 MemberTypes MemberType {get;}
74 Type ReflectedType {get;}