New test.
[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 #if NET_1_1
9
10 using System;
11 using System.Reflection;
12
13 namespace System.Runtime.InteropServices
14 {
15         [CLSCompliant (false)]
16         [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
17         [Guid ("9DE59C64-D889-35A1-B897-587D74469E5B")]
18         [TypeLibImportClass (typeof (EventInfo))]
19         public interface _EventInfo
20         {
21                 void AddEventHandler (object target, Delegate handler);
22
23                 bool Equals (object obj);
24
25                 MethodInfo GetAddMethod ();
26
27                 MethodInfo GetAddMethod (bool nonPublic);
28
29                 object[] GetCustomAttributes (bool inherit);
30
31                 object[] GetCustomAttributes (Type attributeType, bool inherit);
32
33                 int GetHashCode ();
34
35                 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
36
37                 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
38
39                 void GetTypeInfoCount (out uint pcTInfo);
40
41                 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
42                         IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
43
44                 MethodInfo GetRaiseMethod ();
45
46                 MethodInfo GetRaiseMethod (bool nonPublic);
47
48                 MethodInfo GetRemoveMethod ();
49
50                 MethodInfo GetRemoveMethod (bool nonPublic);
51
52                 Type GetType ();
53
54                 bool IsDefined (Type attributeType, bool inherit);
55
56                 void RemoveEventHandler (object target, Delegate handler);
57
58                 string ToString ();
59
60                 EventAttributes Attributes {get;}
61
62                 Type DeclaringType {get;}
63
64                 Type EventHandlerType {get;}
65
66                 bool IsMulticast {get;}
67
68                 bool IsSpecialName {get;}
69
70                 MemberTypes MemberType {get;}
71
72                 string Name {get;}
73
74                 Type ReflectedType {get;}
75         }
76 }
77 #endif