2 // System.Runtime.InteropServices._PropertyInfo interface
5 // Kazuki Oikawa (kazuki@panicode.com)
9 using System
.Globalization
;
10 using System
.Reflection
;
12 namespace System
.Runtime
.InteropServices
14 [CLSCompliant (false)]
15 [InterfaceType (ComInterfaceType
.InterfaceIsIUnknown
)]
16 [Guid ("F59ED4E4-E68F-3218-BD77-061AA82824BF")]
18 [TypeLibImportClass (typeof (PropertyInfo
))]
21 public interface _PropertyInfo
23 bool Equals (object other
);
25 MethodInfo
[] GetAccessors ();
27 MethodInfo
[] GetAccessors (bool nonPublic
);
29 object[] GetCustomAttributes (bool inherit
);
31 object[] GetCustomAttributes (Type attributeType
, bool inherit
);
33 MethodInfo
GetGetMethod ();
35 MethodInfo
GetGetMethod (bool nonPublic
);
39 ParameterInfo
[] GetIndexParameters ();
41 MethodInfo
GetSetMethod ();
43 MethodInfo
GetSetMethod (bool nonPublic
);
45 void GetIDsOfNames ([In
] ref Guid riid
, IntPtr rgszNames
, uint cNames
, uint lcid
, IntPtr rgDispId
);
47 void GetTypeInfo (uint iTInfo
, uint lcid
, IntPtr ppTInfo
);
49 void GetTypeInfoCount (out uint pcTInfo
);
51 void Invoke (uint dispIdMember
, [In
] ref Guid riid
, uint lcid
, short wFlags
, IntPtr pDispParams
,
52 IntPtr pVarResult
, IntPtr pExcepInfo
, IntPtr puArgErr
);
56 object GetValue (object obj
, object[] index
);
58 object GetValue (object obj
, BindingFlags invokeAttr
, Binder binder
, object[] index
, CultureInfo culture
);
60 bool IsDefined (Type attributeType
, bool inherit
);
62 void SetValue (object obj
, object value, object[] index
);
64 void SetValue (object obj
, object value, BindingFlags invokeAttr
, Binder binder
, object[] index
, CultureInfo culture
);
68 PropertyAttributes Attributes {get;}
74 Type DeclaringType {get;}
76 bool IsSpecialName {get;}
78 MemberTypes MemberType {get;}
82 Type PropertyType {get;}
84 Type ReflectedType {get;}