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