2 // System.Runtime.InteropServices._PropertyInfo interface
5 // Kazuki Oikawa (kazuki@panicode.com)
11 using System.Globalization;
12 using System.Reflection;
14 namespace System.Runtime.InteropServices
16 [CLSCompliant (false)]
17 [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
18 [Guid ("F59ED4E4-E68F-3218-BD77-061AA82824BF")]
19 [TypeLibImportClass (typeof (PropertyInfo))]
20 public interface _PropertyInfo
22 bool Equals (object obj);
24 MethodInfo[] GetAccessors ();
26 MethodInfo[] GetAccessors (bool nonPublic);
28 object[] GetCustomAttributes (bool inherit);
30 object[] GetCustomAttributes (Type attributeType, bool inherit);
32 MethodInfo GetGetMethod ();
34 MethodInfo GetGetMethod (bool nonPublic);
38 ParameterInfo[] GetIndexParameters ();
40 MethodInfo GetSetMethod ();
42 MethodInfo GetSetMethod (bool nonPublic);
44 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
46 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
48 void GetTypeInfoCount (out uint pcTInfo);
50 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
51 IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
55 object GetValue (object obj, object[] index);
57 object GetValue (object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture);
59 bool IsDefined (Type attributeType, bool inherit);
61 void SetValue (object obj, object value, object[] index);
63 void SetValue (object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture);
67 PropertyAttributes Attributes {get;}
73 Type DeclaringType {get;}
75 bool IsSpecialName {get;}
77 MemberTypes MemberType {get;}
81 Type PropertyType {get;}
83 Type ReflectedType {get;}