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

238 lines
15 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.FieldInfo" /> class to unmanaged code.</summary>
// Token: 0x02000373 RID: 883
[Guid("8A7C1442-A9FB-366B-80D8-4939FFA6DBE0")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[CLSCompliant(false)]
[ComVisible(true)]
[TypeLibImportClass(typeof(FieldInfo))]
public interface _FieldInfo
{
/// <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: 0x06002438 RID: 9272
bool Equals(object other);
/// <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">Specifies whether to search this member's inheritance chain to find the attributes.</param>
// Token: 0x06002439 RID: 9273
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">Specifies whether to search this member's inheritance chain to find the attributes. </param>
// Token: 0x0600243A RID: 9274
object[] GetCustomAttributes(Type attributeType, bool inherit);
/// <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: 0x0600243B RID: 9275
int GetHashCode();
/// <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: 0x0600243C RID: 9276
Type GetType();
/// <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">Passed-in array of names to be mapped.</param>
/// <param name="cNames">Count of the names to be mapped.</param>
/// <param name="lcid">The locale context in which to interpret the names.</param>
/// <param name="rgDispId">Caller-allocated array that receives the IDs corresponding to the names.</param>
// Token: 0x0600243D RID: 9277
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
/// <summary>Retrieves the type information for an object, which can then 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">Receives a pointer to the requested type information object.</param>
// Token: 0x0600243E RID: 9278
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">Points to a location that receives the number of type information interfaces provided by the object.</param>
// Token: 0x0600243F RID: 9279
void GetTypeInfoCount(out uint pcTInfo);
/// <summary>Provides access to properties and methods exposed by an object.</summary>
/// <param name="dispIdMember">Identifies the 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">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">Pointer to the location where the result is to be stored.</param>
/// <param name="pExcepInfo">Pointer to a structure that contains exception information.</param>
/// <param name="puArgErr">The index of the first argument that has an error.</param>
// Token: 0x06002440 RID: 9280
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.Reflection.FieldInfo.GetValue(System.Object)" /> method.</summary>
/// <returns>An object containing the value of the field reflected by this instance.</returns>
/// <param name="obj">The object whose field value will be returned.</param>
// Token: 0x06002441 RID: 9281
object GetValue(object obj);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.FieldInfo.GetValueDirect(System.TypedReference)" /> method.</summary>
/// <returns>An <see cref="T:System.Object" /> containing a field value.</returns>
/// <param name="obj">A <see cref="T:System.TypedReference" /> structure that encapsulates a managed pointer to a location and a runtime representation of the type that might be stored at that location.</param>
// Token: 0x06002442 RID: 9282
object GetValueDirect(TypedReference obj);
/// <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 instance of <paramref name="attributeType" /> is 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">Specifies whether to search this member's inheritance chain to find the attributes. </param>
// Token: 0x06002443 RID: 9283
bool IsDefined(Type attributeType, bool inherit);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.FieldInfo.SetValue(System.Object,System.Object)" /> method.</summary>
/// <param name="obj">The object whose field value will be set.</param>
/// <param name="value">The value to assign to the field. </param>
// Token: 0x06002444 RID: 9284
void SetValue(object obj, object value);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.PropertyInfo.SetValue(System.Object,System.Object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo)" /> method.</summary>
/// <param name="obj">The object whose field value will be set. </param>
/// <param name="value">The value to assign to the field. </param>
/// <param name="invokeAttr">A field of <see cref="T:System.Reflection.Binder" /> that specifies the type of binding that is desired (for example, Binder.CreateInstance or Binder.ExactBinding). </param>
/// <param name="binder">A set of properties that enables the binding, coercion of argument types, and invocation of members through reflection. If <paramref name="binder" /> is null, then Binder.DefaultBinding is used. </param>
/// <param name="culture">The software preferences of a particular culture. </param>
// Token: 0x06002445 RID: 9285
void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
/// <summary>Provides COM objects with version-independent access to the <see cref="M:System.Reflection.FieldInfo.SetValueDirect(System.TypedReference,System.Object)" /> method.</summary>
/// <param name="obj">The object whose field value will be set.</param>
/// <param name="value">The value to assign to the field.</param>
// Token: 0x06002446 RID: 9286
void SetValueDirect(TypedReference obj, object value);
/// <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: 0x06002447 RID: 9287
string ToString();
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.Attributes" /> property. </summary>
/// <returns>The <see cref="T:System.Reflection.FieldAttributes" /> for this field.</returns>
// Token: 0x17000685 RID: 1669
// (get) Token: 0x06002448 RID: 9288
FieldAttributes Attributes { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.MemberInfo.DeclaringType" /> property. </summary>
/// <returns>The <see cref="T:System.Type" /> object for the class that declares this member.</returns>
// Token: 0x17000686 RID: 1670
// (get) Token: 0x06002449 RID: 9289
Type DeclaringType { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.FieldHandle" /> property.</summary>
/// <returns>A handle to the internal metadata representation of a field.</returns>
// Token: 0x17000687 RID: 1671
// (get) Token: 0x0600244A RID: 9290
RuntimeFieldHandle FieldHandle { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.FieldType" /> property.</summary>
/// <returns>The type of this field object.</returns>
// Token: 0x17000688 RID: 1672
// (get) Token: 0x0600244B RID: 9291
Type FieldType { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsAssembly" /> property.</summary>
/// <returns>true if the field has the Assembly attribute set; otherwise, false.</returns>
// Token: 0x17000689 RID: 1673
// (get) Token: 0x0600244C RID: 9292
bool IsAssembly { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsFamily" /> property.</summary>
/// <returns>true if the field has the Family attribute set; otherwise, false.</returns>
// Token: 0x1700068A RID: 1674
// (get) Token: 0x0600244D RID: 9293
bool IsFamily { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsFamilyAndAssembly" /> property.</summary>
/// <returns>true if the field has the FamANDAssem attribute set; otherwise, false.</returns>
// Token: 0x1700068B RID: 1675
// (get) Token: 0x0600244E RID: 9294
bool IsFamilyAndAssembly { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsFamilyOrAssembly" /> property.</summary>
/// <returns>true if the field has the FamORAssem attribute set; otherwise, false.</returns>
// Token: 0x1700068C RID: 1676
// (get) Token: 0x0600244F RID: 9295
bool IsFamilyOrAssembly { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsInitOnly" /> property.</summary>
/// <returns>true if the field has the InitOnly attribute set; otherwise, false.</returns>
// Token: 0x1700068D RID: 1677
// (get) Token: 0x06002450 RID: 9296
bool IsInitOnly { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsLiteral" /> property.</summary>
/// <returns>true if the field has the Literal attribute set; otherwise, false.</returns>
// Token: 0x1700068E RID: 1678
// (get) Token: 0x06002451 RID: 9297
bool IsLiteral { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsNotSerialized" /> property.</summary>
/// <returns>true if the field has the NotSerialized attribute set; otherwise, false.</returns>
// Token: 0x1700068F RID: 1679
// (get) Token: 0x06002452 RID: 9298
bool IsNotSerialized { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsPinvokeImpl" /> property.</summary>
/// <returns>true if the PinvokeImpl attribute is set in <see cref="T:System.Reflection.FieldAttributes" />; otherwise, false.</returns>
// Token: 0x17000690 RID: 1680
// (get) Token: 0x06002453 RID: 9299
bool IsPinvokeImpl { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsPrivate" /> property.</summary>
/// <returns>true if the field is private; otherwise; false.</returns>
// Token: 0x17000691 RID: 1681
// (get) Token: 0x06002454 RID: 9300
bool IsPrivate { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsPublic" /> property.</summary>
/// <returns>true if this field is public; otherwise, false.</returns>
// Token: 0x17000692 RID: 1682
// (get) Token: 0x06002455 RID: 9301
bool IsPublic { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsSpecialName" /> property.</summary>
/// <returns>true if the SpecialName attribute is set in <see cref="T:System.Reflection.FieldAttributes" />; otherwise, false.</returns>
// Token: 0x17000693 RID: 1683
// (get) Token: 0x06002456 RID: 9302
bool IsSpecialName { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.IsStatic" /> property.</summary>
/// <returns>true if this field is static; otherwise, false.</returns>
// Token: 0x17000694 RID: 1684
// (get) Token: 0x06002457 RID: 9303
bool IsStatic { get; }
/// <summary>Provides COM objects with version-independent access to the <see cref="P:System.Reflection.FieldInfo.MemberType" /> property.</summary>
/// <returns>A <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is a field.</returns>
// Token: 0x17000695 RID: 1685
// (get) Token: 0x06002458 RID: 9304
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" /> containing the name of this member.</returns>
// Token: 0x17000696 RID: 1686
// (get) Token: 0x06002459 RID: 9305
string Name { 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 object was obtained.</returns>
// Token: 0x17000697 RID: 1687
// (get) Token: 0x0600245A RID: 9306
Type ReflectedType { get; }
}
}