Files
Dec2017-Script-Dump/mscorlib/System/Runtime/InteropServices/_PropertyInfo.cs
T
2026-06-04 11:42:34 +02:00

217 lines
18 KiB
C#

using System;
using System.Globalization;
using System.Reflection;
namespace System.Runtime.InteropServices
{
/// <summary>Exposes the public members of the <see cref="T:System.Reflection.PropertyInfo" /> class to unmanaged code.</summary>
// Token: 0x0200037F RID: 895
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComVisible(true)]
[TypeLibImportClass(typeof(PropertyInfo))]
[Guid("F59ED4E4-E68F-3218-BD77-061AA82824BF")]
[CLSCompliant(false)]
public interface _PropertyInfo
{
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Object.Equals(System.Object)" /> method.</summary>
/// <returns>true if the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Object" />; otherwise, false.</returns>
/// <param name="other">The <see cref="T:System.Object" /> to compare with the current <see cref="T:System.Object" />.</param>
// Token: 0x060024C8 RID: 9416
bool Equals(object other);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.GetAccessors" /> method.</summary>
/// <returns>An array of <see cref="T:System.Reflection.MethodInfo" /> objects that reflect the public get, set, and other accessors of the property reflected by the current instance, if accessors are found; otherwise, this method returns an array with zero (0) elements.</returns>
// Token: 0x060024C9 RID: 9417
MethodInfo[] GetAccessors();
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.GetAccessors(System.Boolean)" /> method.</summary>
/// <returns>An array of <see cref="T:System.Reflection.MethodInfo" /> objects whose elements reflect the get, set, and other accessors of the property reflected by the current instance. If the <paramref name="nonPublic" /> parameter is true, this array contains public and non-public get, set, and other accessors. If <paramref name="nonPublic" /> is false, this array contains only public get, set, and other accessors. If no accessors with the specified visibility are found, this method returns an array with zero (0) elements.</returns>
/// <param name="nonPublic">true to include non-public methods in the returned MethodInfo array; otherwise, false.</param>
// Token: 0x060024CA RID: 9418
MethodInfo[] GetAccessors(bool nonPublic);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.MemberInfo.GetCustomAttributes(System.Boolean)" /> method.</summary>
/// <returns>An array that contains all the custom attributes, or an array with zero elements if no attributes are defined.</returns>
/// <param name="inherit">true to search this member's inheritance chain to find the attributes; otherwise false.</param>
// Token: 0x060024CB RID: 9419
object[] GetCustomAttributes(bool inherit);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.MemberInfo.GetCustomAttributes(System.Type,System.Boolean)" /> method.</summary>
/// <returns>An array of custom attributes applied to this member, or an array with zero (0) elements if no attributes have been applied.</returns>
/// <param name="attributeType">The type of attribute to search for. Only attributes that are assignable to this type are returned. </param>
/// <param name="inherit">true to search this member's inheritance chain to find the attributes; otherwise false.</param>
// Token: 0x060024CC RID: 9420
object[] GetCustomAttributes(Type attributeType, bool inherit);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.GetGetMethod" /> method.</summary>
/// <returns>A <see cref="T:System.Reflection.MethodInfo" /> object representing the public get accessor for this property, or null if the get accessor is non-public or does not exist.</returns>
// Token: 0x060024CD RID: 9421
MethodInfo GetGetMethod();
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.GetGetMethod(System.Boolean)" /> method.</summary>
/// <returns>A <see cref="T:System.Reflection.MethodInfo" /> object representing the get accessor for this property, if the <paramref name="nonPublic" /> parameter is true. Or null if <paramref name="nonPublic" /> is false and the get accessor is non-public, or if <paramref name="nonPublic" /> is true but no get accessors exist.</returns>
/// <param name="nonPublic">true to return a non-public get accessor; otherwise, false.</param>
// Token: 0x060024CE RID: 9422
MethodInfo GetGetMethod(bool nonPublic);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Object.GetHashCode" /> method.</summary>
/// <returns>The hash code for the current instance.</returns>
// Token: 0x060024CF RID: 9423
int GetHashCode();
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.GetIndexParameters" /> method.</summary>
/// <returns>An array of type <see cref="T:System.Reflection.ParameterInfo" /> containing the parameters for the indexes.</returns>
// Token: 0x060024D0 RID: 9424
ParameterInfo[] GetIndexParameters();
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.GetSetMethod" /> method.</summary>
/// <returns>The <see cref="T:System.Reflection.MethodInfo" /> object representing the Set method for this property if the set accessor is public, or null if the set accessor is not public.</returns>
// Token: 0x060024D1 RID: 9425
MethodInfo GetSetMethod();
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.GetSetMethod(System.Boolean)" /> method.</summary>
/// <returns>Value Condition A <see cref="T:System.Reflection.MethodInfo" /> object representing the Set method for this property. The set accessor is public.-or- The <paramref name="nonPublic" /> parameter is true and the set accessor is non-public. nullThe <paramref name="nonPublic" /> parameter is true, but the property is read-only.-or- The <paramref name="nonPublic" /> parameter is false and the set accessor is non-public.-or- There is no set accessor. </returns>
/// <param name="nonPublic">true to return a non-public accessor; otherwise, false.</param>
// Token: 0x060024D2 RID: 9426
MethodInfo GetSetMethod(bool nonPublic);
/// <summary>Maps a set of names to a corresponding set of dispatch identifiers.</summary>
/// <param name="riid">Reserved for future use. Must be IID_NULL.</param>
/// <param name="rgszNames">An array of names to be mapped.</param>
/// <param name="cNames">The count of the names to be mapped.</param>
/// <param name="lcid">The locale context in which to interpret the names.</param>
/// <param name="rgDispId">An array allocated by the caller that receives the identifiers corresponding to the names.</param>
// Token: 0x060024D3 RID: 9427
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
/// <summary>Retrieves the type information for an object, which can be used to get the type information for an interface.</summary>
/// <param name="iTInfo">The type information to return.</param>
/// <param name="lcid">The locale identifier for the type information.</param>
/// <param name="ppTInfo">A pointer to the requested type information object.</param>
// Token: 0x060024D4 RID: 9428
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
/// <summary>Retrieves the number of type information interfaces that an object provides (either 0 or 1).</summary>
/// <param name="pcTInfo">When this method returns, contains a pointer to a location that receives the number of type information interfaces provided by the object. This parameter is passed uninitialized.</param>
// Token: 0x060024D5 RID: 9429
void GetTypeInfoCount(out uint pcTInfo);
/// <summary>Provides access to properties and methods exposed by an object.</summary>
/// <param name="dispIdMember">An identifier of a member.</param>
/// <param name="riid">Reserved for future use. Must be IID_NULL.</param>
/// <param name="lcid">The locale context in which to interpret arguments.</param>
/// <param name="wFlags">Flags describing the context of the call.</param>
/// <param name="pDispParams">A pointer to a structure containing an array of arguments, an array of argument DISPIDs for named arguments, and counts for the number of elements in the arrays.</param>
/// <param name="pVarResult">A pointer to the location where the result will be stored.</param>
/// <param name="pExcepInfo">A pointer to a structure that contains exception information.</param>
/// <param name="puArgErr">The index of the first argument that has an error.</param>
// Token: 0x060024D6 RID: 9430
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Object.GetType" /> method.</summary>
/// <returns>A <see cref="T:System.Type" /> object.</returns>
// Token: 0x060024D7 RID: 9431
Type GetType();
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.GetValue(System.Object,System.Object[])" /> method.</summary>
/// <returns>The property value for the <paramref name="obj" /> parameter.</returns>
/// <param name="obj">The object whose property value will be returned. </param>
/// <param name="index">Optional index values for indexed properties. This value should be null for non-indexed properties. </param>
// Token: 0x060024D8 RID: 9432
object GetValue(object obj, object[] index);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.GetValue(System.Object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo)" /> method.</summary>
/// <returns>The property value for the <paramref name="obj" /> parameter.</returns>
/// <param name="obj">The object whose property value will be returned. </param>
/// <param name="invokeAttr">The invocation attribute. This must be a bit flag from BindingFlags: InvokeMethod, CreateInstance, Static, GetField, SetField, GetProperty, or SetProperty. A suitable invocation attribute must be specified. If a static member will be invoked, the Static flag of BindingFlags must be set. </param>
/// <param name="binder">An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects through reflection. If <paramref name="binder" /> is null, the default binder is used. </param>
/// <param name="index">Optional index values for indexed properties. This value should be null for non-indexed properties. </param>
/// <param name="culture">The CultureInfo object that represents the culture for which the resource will be localized. Note that if the resource is not localized for this culture, the CultureInfo.Parent method will be called successively in search of a match. If this value is null, the CultureInfo is obtained from the CultureInfo.CurrentUICulture property. </param>
// Token: 0x060024D9 RID: 9433
object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.MemberInfo.IsDefined(System.Type,System.Boolean)" /> method.</summary>
/// <returns>true if one or more instances of the <paramref name="attributeType" /> parameter are applied to this member; otherwise, false.</returns>
/// <param name="attributeType">The <see cref="T:System.Type" /> object to which the custom attributes are applied. </param>
/// <param name="inherit">true to search this member's inheritance chain to find the attributes; otherwise false. </param>
// Token: 0x060024DA RID: 9434
bool IsDefined(Type attributeType, bool inherit);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.SetValue(System.Object,System.Object,System.Object[])" /> method.</summary>
/// <param name="obj">The object whose property value will be set. </param>
/// <param name="value">The new value for this property. </param>
/// <param name="index">Optional index values for indexed properties. This value should be null for non-indexed properties. </param>
// Token: 0x060024DB RID: 9435
void SetValue(object obj, object value, object[] index);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.FieldInfo.SetValue(System.Object,System.Object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo)" /> method.</summary>
/// <param name="obj">The object whose property value will be returned. </param>
/// <param name="value">The new value for this property. </param>
/// <param name="invokeAttr">The invocation attribute. This must be a bit flag from <see cref="T:System.Reflection.BindingFlags" />: InvokeMethod, CreateInstance, Static, GetField, SetField, GetProperty, or SetProperty. A suitable invocation attribute must be specified. If a static member will be invoked, the Static flag of BindingFlags must be set. </param>
/// <param name="binder">An object that enables the binding, coercion of argument types, invocation of members, and retrieval of <see cref="T:System.Reflection.MemberInfo" /> objects through reflection. If <paramref name="binder" /> is null, the default binder is used. </param>
/// <param name="index">Optional index values for indexed properties. This value should be null for non-indexed properties. </param>
/// <param name="culture">The <see cref="T:System.Globalization.CultureInfo" /> object that represents the culture for which the resource will be localized. Note that if the resource is not localized for this culture, the CultureInfo.Parent method will be called successively in search of a match. If this value is null, the CultureInfo is obtained from the CultureInfo.CurrentUICulture property. </param>
// Token: 0x060024DC RID: 9436
void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Object.ToString" /> method.</summary>
/// <returns>A string that represents the current <see cref="T:System.Object" />.</returns>
// Token: 0x060024DD RID: 9437
string ToString();
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.PropertyInfo.Attributes" /> property.</summary>
/// <returns>The attributes of this property.</returns>
// Token: 0x170006C2 RID: 1730
// (get) Token: 0x060024DE RID: 9438
PropertyAttributes Attributes { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.PropertyInfo.CanRead" /> property.</summary>
/// <returns>true if this property can be read; otherwise, false.</returns>
// Token: 0x170006C3 RID: 1731
// (get) Token: 0x060024DF RID: 9439
bool CanRead { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.PropertyInfo.CanWrite" /> property.</summary>
/// <returns>true if this property can be written to; otherwise, false.</returns>
// Token: 0x170006C4 RID: 1732
// (get) Token: 0x060024E0 RID: 9440
bool CanWrite { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.MemberInfo.DeclaringType" /> property.</summary>
/// <returns>The Type object for the class that declares this member.</returns>
// Token: 0x170006C5 RID: 1733
// (get) Token: 0x060024E1 RID: 9441
Type DeclaringType { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.PropertyInfo.IsSpecialName" /> property.</summary>
/// <returns>true if this property is the special name; otherwise, false.</returns>
// Token: 0x170006C6 RID: 1734
// (get) Token: 0x060024E2 RID: 9442
bool IsSpecialName { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.PropertyInfo.MemberType" /> property.</summary>
/// <returns>One of the <see cref="T:System.Reflection.MemberTypes" /> values indicating that this member is a property.</returns>
// Token: 0x170006C7 RID: 1735
// (get) Token: 0x060024E3 RID: 9443
MemberTypes MemberType { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.MemberInfo.Name" /> property.</summary>
/// <returns>A <see cref="T:System.String" /> object containing the name of this member.</returns>
// Token: 0x170006C8 RID: 1736
// (get) Token: 0x060024E4 RID: 9444
string Name { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.PropertyInfo.PropertyType" /> property.</summary>
/// <returns>The type of this property.</returns>
// Token: 0x170006C9 RID: 1737
// (get) Token: 0x060024E5 RID: 9445
Type PropertyType { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.MemberInfo.ReflectedType" /> property.</summary>
/// <returns>The <see cref="T:System.Type" /> object through which this <see cref="T:System.Reflection.MemberInfo" /> object was obtained.</returns>
// Token: 0x170006CA RID: 1738
// (get) Token: 0x060024E6 RID: 9446
Type ReflectedType { get; }
}
}