* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _PropertyInfo.cs
1 //
2 // System.Runtime.InteropServices._PropertyInfo interface
3 //
4 // Author:
5 //   Kazuki Oikawa  (kazuki@panicode.com)
6 //
7
8 #if NET_1_1
9
10 using System;
11 using System.Globalization;
12 using System.Reflection;
13
14 namespace System.Runtime.InteropServices
15 {
16         [CLSCompliant (false)]
17         [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
18         [Guid ("F59ED4E4-E68F-3218-BD77-061AA82824BF")]
19         [TypeLibImportClass (typeof (PropertyInfo))]
20         public interface _PropertyInfo
21         {
22                 bool Equals (object obj);
23
24                 MethodInfo[] GetAccessors ();
25
26                 MethodInfo[] GetAccessors (bool nonPublic);
27
28                 object[] GetCustomAttributes (bool inherit);
29
30                 object[] GetCustomAttributes (Type attributeType, bool inherit);
31
32                 MethodInfo GetGetMethod ();
33
34                 MethodInfo GetGetMethod (bool nonPublic);
35
36                 int GetHashCode ();
37
38                 ParameterInfo[] GetIndexParameters ();
39
40                 MethodInfo GetSetMethod ();
41
42                 MethodInfo GetSetMethod (bool nonPublic);
43
44                 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
45
46                 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
47
48                 void GetTypeInfoCount (out uint pcTInfo);
49
50                 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
51                         IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
52
53                 Type GetType ();
54
55                 object GetValue (object obj, object[] index);
56
57                 object GetValue (object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture);
58
59                 bool IsDefined (Type attributeType, bool inherit);
60
61                 void SetValue (object obj, object value, object[] index);
62
63                 void SetValue (object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture);
64                 
65                 string ToString ();
66
67                 PropertyAttributes Attributes {get;}
68
69                 bool CanRead {get;}
70
71                 bool CanWrite {get;}
72
73                 Type DeclaringType {get;}
74
75                 bool IsSpecialName {get;}
76
77                 MemberTypes MemberType {get;}
78
79                 string Name {get;}
80
81                 Type PropertyType {get;}
82
83                 Type ReflectedType {get;}
84         }
85 }
86 #endif