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")]
16 [TypeLibImportClass (typeof (EventInfo))]
18 public interface _EventInfo
20 void AddEventHandler (object target, Delegate handler);
22 bool Equals (object other);
24 MethodInfo GetAddMethod ();
26 MethodInfo GetAddMethod (bool nonPublic);
28 object[] GetCustomAttributes (bool inherit);
30 object[] GetCustomAttributes (Type attributeType, bool inherit);
34 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
36 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
38 void GetTypeInfoCount (out uint pcTInfo);
40 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
41 IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
43 MethodInfo GetRaiseMethod ();
45 MethodInfo GetRaiseMethod (bool nonPublic);
47 MethodInfo GetRemoveMethod ();
49 MethodInfo GetRemoveMethod (bool nonPublic);
53 bool IsDefined (Type attributeType, bool inherit);
55 void RemoveEventHandler (object target, Delegate handler);
59 EventAttributes Attributes {get;}
61 Type DeclaringType {get;}
63 Type EventHandlerType {get;}
65 bool IsMulticast {get;}
67 bool IsSpecialName {get;}
69 MemberTypes MemberType {get;}
73 Type ReflectedType {get;}