mscorlib(4.0.0.0) API with additions
_PropertyInfo.cs
2 using System.Reflection;
3 
5 {
7  [Guid("F59ED4E4-E68F-3218-BD77-061AA82824BF")]
8  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
9  [CLSCompliant(false)]
10  [TypeLibImportClass(typeof(PropertyInfo))]
11  [ComVisible(true)]
12  public interface _PropertyInfo
13  {
17  {
18  get;
19  }
20 
23  string Name
24  {
25  get;
26  }
27 
31  {
32  get;
33  }
34 
38  {
39  get;
40  }
41 
45  {
46  get;
47  }
48 
52  {
53  get;
54  }
55 
59  bool CanRead
60  {
61  get;
62  }
63 
67  bool CanWrite
68  {
69  get;
70  }
71 
75  bool IsSpecialName
76  {
77  get;
78  }
79 
82  void GetTypeInfoCount(out uint pcTInfo);
83 
88  void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
89 
96  void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
97 
107  void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
108 
111  new string ToString();
112 
117  new bool Equals(object other);
118 
121  new int GetHashCode();
122 
125  new Type GetType();
126 
131  object[] GetCustomAttributes(Type attributeType, bool inherit);
132 
136  object[] GetCustomAttributes(bool inherit);
137 
143  bool IsDefined(Type attributeType, bool inherit);
144 
149  object GetValue(object obj, object[] index);
150 
158  object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture);
159 
164  void SetValue(object obj, object value, object[] index);
165 
173  void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture);
174 
179  MethodInfo[] GetAccessors(bool nonPublic);
180 
185  MethodInfo GetGetMethod(bool nonPublic);
186 
193  MethodInfo GetSetMethod(bool nonPublic);
194 
198 
202 
206 
210  }
211 }
Discovers the attributes of a parameter and provides access to parameter metadata.
object GetValue(object obj, object[] index)
Provides COM objects with version-independent access to the M:System.Reflection.PropertyInfo....
Type ReflectedType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
PropertyAttributes Attributes
Provides COM objects with version-independent access to the P:System.Reflection.PropertyInfo....
Discovers the attributes of a method and provides access to method metadata.
Definition: MethodInfo.cs:13
void GetTypeInfoCount(out uint pcTInfo)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
BindingFlags
Specifies flags that control binding and the way in which the search for members and types is conduct...
Definition: BindingFlags.cs:10
Definition: __Canon.cs:3
bool IsSpecialName
Provides COM objects with version-independent access to the P:System.Reflection.PropertyInfo....
MemberTypes MemberType
Provides COM objects with version-independent access to the P:System.Reflection.PropertyInfo....
new bool Equals(object other)
Provides COM objects with version-independent access to the M:System.Object.Equals(System....
bool CanRead
Provides COM objects with version-independent access to the P:System.Reflection.PropertyInfo....
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
Maps a set of names to a corresponding set of dispatch identifiers.
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
Definition: Guid.cs:14
object [] GetCustomAttributes(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.MemberInfo....
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo)
Retrieves the type information for an object, which can be used to get the type information for an in...
new string ToString()
Provides COM objects with version-independent access to the M:System.Object.ToString method.
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
Provides access to properties and methods exposed by an object.
ParameterInfo [] GetIndexParameters()
Provides COM objects with version-independent access to the M:System.Reflection.PropertyInfo....
string Name
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....
A platform-specific type that is used to represent a pointer or a handle.
Definition: IntPtr.cs:14
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
Exposes the public members of the T:System.Reflection.PropertyInfo class to unmanaged code.
MethodInfo GetSetMethod()
Provides COM objects with version-independent access to the M:System.Reflection.PropertyInfo....
Type PropertyType
Provides COM objects with version-independent access to the P:System.Reflection.PropertyInfo....
bool CanWrite
Provides COM objects with version-independent access to the P:System.Reflection.PropertyInfo....
Selects a member from a list of candidates, and performs type conversion from actual argument type to...
Definition: Binder.cs:10
Discovers the attributes of a property and provides access to property metadata.
Definition: PropertyInfo.cs:15
new Type GetType()
Provides COM objects with version-independent access to the M:System.Object.GetType method.
ComInterfaceType
Identifies how to expose an interface to COM.
MethodInfo GetGetMethod()
Provides COM objects with version-independent access to the M:System.Reflection.PropertyInfo....
MethodInfo [] GetAccessors()
Provides COM objects with version-independent access to the M:System.Reflection.PropertyInfo....
PropertyAttributes
Defines the attributes that can be associated with a property. These attribute values are defined in ...
bool IsDefined(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.MemberInfo....
new int GetHashCode()
Provides COM objects with version-independent access to the M:System.Object.GetHashCode method.
void SetValue(object obj, object value, object[] index)
Provides COM objects with version-independent access to the M:System.Reflection.PropertyInfo....
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition: CultureInfo.cs:16
MemberTypes
Marks each type of member that is defined as a derived class of T:System.Reflection....
Definition: MemberTypes.cs:9
Type DeclaringType
Provides COM objects with version-independent access to the P:System.Reflection.MemberInfo....