﻿<?xml version="1.0" encoding="utf-8"?><Type Name="FieldBuilder" FullName="System.Reflection.Emit.FieldBuilder"><TypeSignature Maintainer="auto" Language="C#" Value="public sealed class FieldBuilder : System.Reflection.FieldInfo, System.Runtime.InteropServices._FieldBuilder" /><TypeSignature Language="ILAsm" Value=".class public sequential ansi sealed beforefieldinit FieldBuilder extends System.Reflection.FieldInfo implements class System.Runtime.InteropServices._FieldBuilder" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Reflection.FieldInfo</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.Runtime.InteropServices._FieldBuilder</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ComDefaultInterface(typeof(System.Runtime.InteropServices._FieldBuilder))</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Get an instance of FieldBuilder by calling <see cref="M:System.Reflection.Emit.TypeBuilder.DefineField(System.String,System.Type,System.Reflection.FieldAttributes)" />, <see cref="M:System.Reflection.Emit.ModuleBuilder.DefineInitializedData(System.String,System.Byte[],System.Reflection.FieldAttributes)" />, or <see cref="M:System.Reflection.Emit.ModuleBuilder.DefineUninitializedData(System.String,System.Int32,System.Reflection.FieldAttributes)" />.</para><block subset="none" type="note"><para>The <see cref="M:System.Reflection.Emit.FieldBuilder.SetValue(System.Object,System.Object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo)" /> method is currently not supported. As a workaround, retrieve the <see cref="T:System.Reflection.FieldInfo" /> by reflecting on the finished type and call <see cref="M:System.Reflection.FieldInfo.SetValue(System.Object,System.Object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo)" /> to set the value of the field.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Defines and represents a field. This class cannot be inherited.</para></summary></Docs><Members><Member MemberName="Attributes"><MemberSignature Language="C#" Value="public override System.Reflection.FieldAttributes Attributes { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.Reflection.FieldAttributes Attributes" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.FieldAttributes</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The following code sample illustrates the use of Attributes.</para><para>code reference: FieldBuilder_ReflectedType#1</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates the attributes of this field. This property is read-only.</para></summary></Docs></Member><Member MemberName="DeclaringType"><MemberSignature Language="C#" Value="public override Type DeclaringType { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Type DeclaringType" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Type</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates a reference to the <see cref="T:System.Type" /> object for the type that declares this field. This property is read-only.</para></summary></Docs></Member><Member MemberName="FieldHandle"><MemberSignature Language="C#" Value="public override RuntimeFieldHandle FieldHandle { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.RuntimeFieldHandle FieldHandle" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.RuntimeFieldHandle</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates the internal metadata handle for this field. This property is read-only.</para></summary></Docs></Member><Member MemberName="FieldType"><MemberSignature Language="C#" Value="public override Type FieldType { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Type FieldType" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Type</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates the <see cref="T:System.Type" /> object that represents the type of this field. This property is read-only.</para></summary></Docs></Member><Member MemberName="GetCustomAttributes"><MemberSignature Language="C#" Value="public override object[] GetCustomAttributes (bool inherit);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance object[] GetCustomAttributes(bool inherit) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object[]</ReturnType></ReturnValue><Parameters><Parameter Name="inherit" Type="System.Boolean" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns all the custom attributes defined for this field.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An array of type <see cref="T:System.Object" /> representing all the custom attributes of the constructor represented by this <see cref="T:System.Reflection.Emit.FieldBuilder" /> instance.</para></returns><param name="inherit"><attribution license="cc4" from="Microsoft" modified="false" />Controls inheritance of custom attributes from base classes. </param></Docs></Member><Member MemberName="GetCustomAttributes"><MemberSignature Language="C#" Value="public override object[] GetCustomAttributes (Type attributeType, bool inherit);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance object[] GetCustomAttributes(class System.Type attributeType, bool inherit) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object[]</ReturnType></ReturnValue><Parameters><Parameter Name="attributeType" Type="System.Type" /><Parameter Name="inherit" Type="System.Boolean" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns all the custom attributes defined for this field identified by the given type.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An array of type <see cref="T:System.Object" /> representing all the custom attributes of the constructor represented by this <see cref="T:System.Reflection.Emit.FieldBuilder" /> instance.</para></returns><param name="attributeType"><attribution license="cc4" from="Microsoft" modified="false" />The custom attribute type. </param><param name="inherit"><attribution license="cc4" from="Microsoft" modified="false" />Controls inheritance of custom attributes from base classes. </param></Docs></Member><Member MemberName="GetToken"><MemberSignature Language="C#" Value="public System.Reflection.Emit.FieldToken GetToken ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype System.Reflection.Emit.FieldToken GetToken() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.Emit.FieldToken</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the token representing this field.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the <see cref="T:System.Reflection.Emit.FieldToken" /> object that represents the token for this field.</para></returns></Docs></Member><Member MemberName="GetValue"><MemberSignature Language="C#" Value="public override object GetValue (object obj);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance object GetValue(object obj) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object</ReturnType></ReturnValue><Parameters><Parameter Name="obj" Type="System.Object" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If the field is static, the <paramref name="obj" /> parameter is ignored. For non-static fields, <paramref name="obj" /> should be an instance of a class that inherits or declares the field.</para><para>The return type of <see cref="M:System.Reflection.Emit.FieldBuilder.GetValue(System.Object)" /> is <see cref="T:System.Object" />. For example, if the field holds a Boolean primitive value, an instance of <see cref="T:System.Object" /> with the appropriate Boolean value is returned. Before returning the value, <see cref="M:System.Reflection.Emit.FieldBuilder.GetValue(System.Object)" /> checks to see if the user has access permission.</para><para>Access restrictions are ignored for fully-trusted code. Private constructors, methods, fields, and properties can be accessed and invoked using Reflection whenever the code is fully-trusted.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Retrieves the value of the field supported by the given object.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An <see cref="T:System.Object" /> containing the value of the field reflected by this instance.</para></returns><param name="obj"><attribution license="cc4" from="Microsoft" modified="false" />The object on which to access the field. </param></Docs></Member><Member MemberName="IsDefined"><MemberSignature Language="C#" Value="public override bool IsDefined (Type attributeType, bool inherit);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool IsDefined(class System.Type attributeType, bool inherit) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="attributeType" Type="System.Type" /><Parameter Name="inherit" Type="System.Boolean" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates whether an attribute having the specified type is defined on a field.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if one or more instance of <paramref name="attributeType" /> is defined on this field; otherwise, false.</para></returns><param name="attributeType"><attribution license="cc4" from="Microsoft" modified="false" />The type of the attribute. </param><param name="inherit"><attribution license="cc4" from="Microsoft" modified="false" />Controls inheritance of custom attributes from base classes. </param></Docs></Member><Member MemberName="Module"><MemberSignature Language="C#" Value="public override System.Reflection.Module Module { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Reflection.Module Module" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.Module</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the module in which the type that contains this field is being defined.</para></summary></Docs></Member><Member MemberName="Name"><MemberSignature Language="C#" Value="public override string Name { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string Name" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The following code sample illustrates the use of Name.</para><para>code reference: FieldBuilder_Class_Name#1</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates the name of this field. This property is read-only.</para></summary></Docs></Member><Member MemberName="ReflectedType"><MemberSignature Language="C#" Value="public override Type ReflectedType { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Type ReflectedType" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Type</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.Reflection.Emit.FieldBuilder" /> object represents a field of a particular class. In order to obtain a <see cref="T:System.Reflection.Emit.FieldBuilder" /> object, the <see cref="T:System.Type" /> object that represents the class that supports the field is queried. This property holds a reference to that <see cref="T:System.Type" /> object.</para><para>The following code sample illustrates the use of ReflectedType.</para><para>code reference: FieldBuilder_ReflectedType#1</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates the reference to the <see cref="T:System.Type" /> object from which this object was obtained. This property is read-only.</para></summary></Docs></Member><Member MemberName="SetConstant"><MemberSignature Language="C#" Value="public void SetConstant (object defaultValue);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetConstant(object defaultValue) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="defaultValue" Type="System.Object" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><paramref name="defaultValue" /> is restricted to the following types: Boolean, SByte, Int16, Int32, Int64, Byte, UInt16, UInt32, UInt64, Single, Double, DateTime, Char, String, and Enum. If the field type is a reference type, CLS compliance requires <paramref name="defaultValue" /> to be null. However, starting with the net_v40_long, <paramref name="defaultValue" /> can be non-null for a reference type as long as the value can be assigned to that reference type. For example, an Int32 value can be assigned to a field of type <see cref="T:System.Object" />. This is not CLS-compliant, but it can be useful in interop scenarios.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets the default value of this field.</para></summary><param name="defaultValue"><attribution license="cc4" from="Microsoft" modified="false" />The new default value for this field. </param></Docs></Member><Member MemberName="SetCustomAttribute"><MemberSignature Language="C#" Value="public void SetCustomAttribute (System.Reflection.Emit.CustomAttributeBuilder customBuilder);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetCustomAttribute(class System.Reflection.Emit.CustomAttributeBuilder customBuilder) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="customBuilder" Type="System.Reflection.Emit.CustomAttributeBuilder" /></Parameters><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets a custom attribute using a custom attribute builder.</para></summary><param name="customBuilder"><attribution license="cc4" from="Microsoft" modified="false" />An instance of a helper class to define the custom attribute. </param></Docs></Member><Member MemberName="SetCustomAttribute"><MemberSignature Language="C#" Value="public void SetCustomAttribute (System.Reflection.ConstructorInfo con, byte[] binaryAttribute);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetCustomAttribute(class System.Reflection.ConstructorInfo con, unsigned int8[] binaryAttribute) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="con" Type="System.Reflection.ConstructorInfo" /><Parameter Name="binaryAttribute" Type="System.Byte[]" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>See the metadata specification in the ECMA Partition II documentation for details on how to format <paramref name="binaryAttribute" />. The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets a custom attribute using a specified custom attribute blob.</para></summary><param name="con"><attribution license="cc4" from="Microsoft" modified="false" />The constructor for the custom attribute. </param><param name="binaryAttribute"><attribution license="cc4" from="Microsoft" modified="false" />A byte blob representing the attributes. </param></Docs></Member><Member MemberName="SetMarshal"><MemberSignature Language="C#" Value="public void SetMarshal (System.Reflection.Emit.UnmanagedMarshal unmanagedMarshal);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetMarshal(class System.Reflection.Emit.UnmanagedMarshal unmanagedMarshal) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Obsolete("An alternate API is available: Emit the MarshalAs custom attribute instead.")</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="unmanagedMarshal" Type="System.Reflection.Emit.UnmanagedMarshal" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The following code sample illustrates the use of SetMarshal.</para><para>code reference: FieldBuilder_SetOffset#1</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Describes the native marshaling of the field.</para></summary><param name="unmanagedMarshal"><attribution license="cc4" from="Microsoft" modified="false" />A descriptor specifying the native marshalling of this field. </param></Docs></Member><Member MemberName="SetOffset"><MemberSignature Language="C#" Value="public void SetOffset (int iOffset);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetOffset(int32 iOffset) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="iOffset" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The following code sample illustrates the use of SetOffset.</para><para>code reference: FieldBuilder_SetOffset#1</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Specifies the field layout.</para></summary><param name="iOffset"><attribution license="cc4" from="Microsoft" modified="false" />The offset of the field within the type containing this field. </param></Docs></Member><Member MemberName="SetValue"><MemberSignature Language="C#" Value="public override void SetValue (object obj, object val, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void SetValue(object obj, object val, valuetype System.Reflection.BindingFlags invokeAttr, class System.Reflection.Binder binder, class System.Globalization.CultureInfo culture) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="obj" Type="System.Object" /><Parameter Name="val" Type="System.Object" /><Parameter Name="invokeAttr" Type="System.Reflection.BindingFlags" /><Parameter Name="binder" Type="System.Reflection.Binder" /><Parameter Name="culture" Type="System.Globalization.CultureInfo" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method will assign the <paramref name="val" /> parameter to the field reflected by this instance on <see cref="T:System.Object" /><paramref name="obj" />. If the field is static, <paramref name="obj" /> will be ignored. For non-static fields, <paramref name="obj" /> should be an instance of a class that inherits or declares the field.</para><para>The new value is passed as an <see cref="T:System.Object" />. For example, if the field's type is Boolean, an instance of <see cref="T:System.Object" /> with the appropriate Boolean value is passed. Before setting the value, <see cref="M:System.Reflection.Emit.FieldBuilder.SetValue(System.Object,System.Object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo)" /> checks to see if the user has access permission.</para><para>Access restrictions are ignored for fully-trusted code. Private constructors, methods, fields, and properties can be accessed and invoked using Reflection whenever the code is fully-trusted.</para><block subset="none" type="note"><para>This method is currently not supported. As a workaround, retrieve the <see cref="T:System.Reflection.FieldInfo" /> by reflecting on the finished type and call <see cref="M:System.Reflection.FieldInfo.SetValue(System.Object,System.Object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo)" /> to set the value of the field.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets the value of the field supported by the given object.</para></summary><param name="obj"><attribution license="cc4" from="Microsoft" modified="false" />The object on which to access the field. </param><param name="val"><attribution license="cc4" from="Microsoft" modified="false" />The value to assign to the field. </param><param name="invokeAttr"><attribution license="cc4" from="Microsoft" modified="false" />A member of IBinder that specifies the type of binding that is desired (for example, IBinder.CreateInstance, IBinder.ExactBinding). </param><param name="binder"><attribution license="cc4" from="Microsoft" modified="false" />A set of properties and enabling for binding, coercion of argument types, and invocation of members using reflection. If binder is null, then IBinder.DefaultBinding is used. </param><param name="culture"><attribution license="cc4" from="Microsoft" modified="false" />The software preferences of a particular culture. </param></Docs></Member><Member MemberName="System.Runtime.InteropServices._FieldBuilder.GetIDsOfNames"><MemberSignature Language="C#" Value="void _FieldBuilder.GetIDsOfNames (ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._FieldBuilder.GetIDsOfNames(valuetype System.Guid riid, native int rgszNames, unsigned int32 cNames, unsigned int32 lcid, native int rgDispId) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="riid" Type="System.Guid&amp;" RefType="ref" /><Parameter Name="rgszNames" Type="System.IntPtr" /><Parameter Name="cNames" Type="System.UInt32" /><Parameter Name="lcid" Type="System.UInt32" /><Parameter Name="rgDispId" Type="System.IntPtr" /></Parameters><Docs><param name="riid">To be added.</param><param name="rgszNames">To be added.</param><param name="cNames">To be added.</param><param name="lcid">To be added.</param><param name="rgDispId">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="System.Runtime.InteropServices._FieldBuilder.GetTypeInfo"><MemberSignature Language="C#" Value="void _FieldBuilder.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._FieldBuilder.GetTypeInfo(unsigned int32 iTInfo, unsigned int32 lcid, native int ppTInfo) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="iTInfo" Type="System.UInt32" /><Parameter Name="lcid" Type="System.UInt32" /><Parameter Name="ppTInfo" Type="System.IntPtr" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is for access to managed classes from unmanaged code, and should not be called from managed code. For more information about <unmanagedCodeEntityReference>IDispatch::GetTypeInfo</unmanagedCodeEntityReference>, see the MSDN Library.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Retrieves the type information for an object, which can then be used to get the type information for an interface.</para></summary><param name="iTInfo"><attribution license="cc4" from="Microsoft" modified="false" />The type information to return.</param><param name="lcid"><attribution license="cc4" from="Microsoft" modified="false" />The locale identifier for the type information.</param><param name="ppTInfo"><attribution license="cc4" from="Microsoft" modified="false" />Receives a pointer to the requested type information object.</param></Docs></Member><Member MemberName="System.Runtime.InteropServices._FieldBuilder.GetTypeInfoCount"><MemberSignature Language="C#" Value="void _FieldBuilder.GetTypeInfoCount (out uint pcTInfo);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._FieldBuilder.GetTypeInfoCount(unsigned int32 pcTInfo) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="pcTInfo" Type="System.UInt32&amp;" RefType="out" /></Parameters><Docs><param name="pcTInfo">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="System.Runtime.InteropServices._FieldBuilder.Invoke"><MemberSignature Language="C#" Value="void _FieldBuilder.Invoke (uint dispIdMember, ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._FieldBuilder.Invoke(unsigned int32 dispIdMember, valuetype System.Guid riid, unsigned int32 lcid, int16 wFlags, native int pDispParams, native int pVarResult, native int pExcepInfo, native int puArgErr) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="dispIdMember" Type="System.UInt32" /><Parameter Name="riid" Type="System.Guid&amp;" RefType="ref" /><Parameter Name="lcid" Type="System.UInt32" /><Parameter Name="wFlags" Type="System.Int16" /><Parameter Name="pDispParams" Type="System.IntPtr" /><Parameter Name="pVarResult" Type="System.IntPtr" /><Parameter Name="pExcepInfo" Type="System.IntPtr" /><Parameter Name="puArgErr" Type="System.IntPtr" /></Parameters><Docs><param name="dispIdMember">To be added.</param><param name="riid">To be added.</param><param name="lcid">To be added.</param><param name="wFlags">To be added.</param><param name="pDispParams">To be added.</param><param name="pVarResult">To be added.</param><param name="pExcepInfo">To be added.</param><param name="puArgErr">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member></Members></Type>