Merge pull request #439 from mono-soc-2012/garyb/iconfix
[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 using System;
9 using System.Reflection;
10
11 namespace System.Runtime.InteropServices
12 {
13         [CLSCompliant (false)]
14         [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
15         [Guid ("f7102fa9-cabb-3a74-a6da-b4567ef1b079")]
16         [TypeLibImportClass (typeof (MemberInfo))]
17         [ComVisible (true)]
18         public interface _MemberInfo
19         {
20                 bool Equals (object other);
21
22                 object[] GetCustomAttributes (bool inherit);
23
24                 object[] GetCustomAttributes (Type attributeType, bool inherit);
25
26                 int GetHashCode ();
27
28                 Type GetType ();
29                 
30                 bool IsDefined (Type attributeType, bool inherit);
31
32                 string ToString ();
33
34                 Type DeclaringType {get;}
35
36                 MemberTypes MemberType {get;}
37
38                 string Name {get;}
39
40                 Type ReflectedType {get;}
41
42                 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
43
44                 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
45
46                 void GetTypeInfoCount (out uint pcTInfo);
47
48                 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
49                         IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
50         }
51 }