updating to the latest module.
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _EventInfo.cs
1 //\r
2 // System.Runtime.InteropServices._EventInfo interface\r
3 //\r
4 // Author:\r
5 //   Kazuki Oikawa  (kazuki@panicode.com)\r
6 //\r
7 \r
8 #if NET_2_0\r
9 \r
10 using System;\r
11 using System.Reflection;\r
12 \r
13 namespace System.Runtime.InteropServices\r
14 {\r
15         [CLSCompliant (false)]\r
16         [InterfaceType (ComInterfaceType.InterfaceIsDual)]\r
17         [Guid ("9DE59C64-D889-35A1-B897-587D74469E5B")]\r
18         public interface _EventInfo\r
19         {\r
20                 void AddEventHandler (object target, Delegate handler);\r
21 \r
22                 bool Equals (object obj);\r
23 \r
24                 MethodInfo GetAddMethod ();\r
25 \r
26                 MethodInfo GetAddMethod (bool nonPublic);\r
27 \r
28                 object[] GetCustomAttributes (bool inherit);\r
29 \r
30                 object[] GetCustomAttributes (Type attributeType, bool inherit);\r
31 \r
32                 int GetHashCode ();\r
33 \r
34                 MethodInfo GetRaiseMethod ();\r
35 \r
36                 MethodInfo GetRaiseMethod (bool nonPublic);\r
37 \r
38                 MethodInfo GetRemoveMethod ();\r
39 \r
40                 MethodInfo GetRemoveMethod (bool nonPublic);\r
41 \r
42                 Type GetType ();\r
43 \r
44                 bool IsDefined (Type attributeType, bool inherit);\r
45 \r
46                 void RemoveEventHandler (object target, Delegate handler);\r
47 \r
48                 string ToString ();\r
49 \r
50                 EventAttributes Attributes {get;}\r
51 \r
52                 Type DeclaringType {get;}\r
53 \r
54                 Type EventHandlerType {get;}\r
55 \r
56                 bool IsMulticast {get;}\r
57 \r
58                 bool IsSpecialName {get;}\r
59 \r
60                 MemberTypes MemberType {get;}\r
61 \r
62                 string Name {get;}\r
63 \r
64                 Type ReflectedType {get;}\r
65         }\r
66 }\r
67 #endif