Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern.cs
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _EventInfo.cs
1 //
2 // System.Runtime.InteropServices._EventInfo interface
3 //
4 // Author:
5 //   Kazuki Oikawa  (kazuki@panicode.com)
6 //
7
8 using System;
9 using System.Reflection;
10
11 namespace System.Runtime.InteropServices
12 {
13         [CLSCompliant (false)]
14         [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
15         [Guid ("9DE59C64-D889-35A1-B897-587D74469E5B")]
16         [TypeLibImportClass (typeof (EventInfo))]
17         [ComVisible (true)]
18         public interface _EventInfo
19         {
20                 void AddEventHandler (object target, Delegate handler);
21
22                 bool Equals (object other);
23
24                 MethodInfo GetAddMethod ();
25
26                 MethodInfo GetAddMethod (bool nonPublic);
27
28                 object[] GetCustomAttributes (bool inherit);
29
30                 object[] GetCustomAttributes (Type attributeType, bool inherit);
31
32                 int GetHashCode ();
33
34                 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
35
36                 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
37
38                 void GetTypeInfoCount (out uint pcTInfo);
39
40                 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
41                         IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
42
43                 MethodInfo GetRaiseMethod ();
44
45                 MethodInfo GetRaiseMethod (bool nonPublic);
46
47                 MethodInfo GetRemoveMethod ();
48
49                 MethodInfo GetRemoveMethod (bool nonPublic);
50
51                 Type GetType ();
52
53                 bool IsDefined (Type attributeType, bool inherit);
54
55                 void RemoveEventHandler (object target, Delegate handler);
56
57                 string ToString ();
58
59                 EventAttributes Attributes {get;}
60
61                 Type DeclaringType {get;}
62
63                 Type EventHandlerType {get;}
64
65                 bool IsMulticast {get;}
66
67                 bool IsSpecialName {get;}
68
69                 MemberTypes MemberType {get;}
70
71                 string Name {get;}
72
73                 Type ReflectedType {get;}
74         }
75 }