New test.
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _MemberInfo.cs
1 //
2 // System.Runtime.InteropServices._MemberInfo 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 ("f7102fa9-cabb-3a74-a6da-b4567ef1b079")]
18         [TypeLibImportClass (typeof (MemberInfo))]
19         public interface _MemberInfo
20         {
21                 bool Equals (object obj);
22
23                 object[] GetCustomAttributes (bool inherit);
24
25                 object[] GetCustomAttributes (Type attributeType, bool inherit);
26
27                 int GetHashCode ();
28
29                 Type GetType ();
30                 
31                 bool IsDefined (Type attributeType, bool inherit);
32
33                 string ToString ();
34
35                 Type DeclaringType {get;}
36
37                 MemberTypes MemberType {get;}
38
39                 string Name {get;}
40
41                 Type ReflectedType {get;}
42
43                 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
44
45                 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
46
47                 void GetTypeInfoCount (out uint pcTInfo);
48
49                 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
50                         IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
51         }
52 }
53 #endif