Export (0) Print
Expand All

FieldBuilder Members

Defines and represents a field. This class cannot be inherited.

The following tables list the members exposed by the FieldBuilder type.

  Name Description
Public property Attributes Overridden. Indicates the attributes of this field. This property is read-only.
Public property DeclaringType Overridden. Indicates a reference to the Type object for the type that declares this field. This property is read-only.
Public property FieldHandle Overridden. Indicates the internal metadata handle for this field. This property is read-only.
Public property FieldType Overridden. Indicates the Type object that represents the type of this field. This property is read-only.
Public property IsAssembly  Gets a value indicating whether the potential visibility of this field is described by FieldAttributes.Assembly; that is, the field is visible at most to other types in the same assembly, and is not visible to derived types outside the assembly.(inherited from FieldInfo)
Public property IsFamily  Gets a value indicating whether the visibility of this field is described by FieldAttributes.Family; that is, the field is visible only within its class and derived classes.(inherited from FieldInfo)
Public property IsFamilyAndAssembly  Gets a value indicating whether the visibility of this field is described by FieldAttributes.FamANDAssem; that is, the field can be accessed from derived classes, but only if they are in the same assembly.(inherited from FieldInfo)
Public property IsFamilyOrAssembly  Gets a value indicating whether the potential visibility of this field is described by FieldAttributes.FamORAssem; that is, the field can be accessed by derived classes wherever they are, and by classes in the same assembly.(inherited from FieldInfo)
Public property IsInitOnly  Gets a value indicating whether the field can only be set in the body of the constructor.(inherited from FieldInfo)
Public property IsLiteral  Gets a value indicating whether the value is written at compile time and cannot be changed.(inherited from FieldInfo)
Public property IsNotSerialized  Gets a value indicating whether this field has the NotSerialized attribute.(inherited from FieldInfo)
Public property IsPinvokeImpl  Gets a value indicating whether the corresponding PinvokeImpl attribute is set in FieldAttributes.(inherited from FieldInfo)
Public property IsPrivate  Gets a value indicating whether the field is private.(inherited from FieldInfo)
Public property IsPublic  Gets a value indicating whether the field is public.(inherited from FieldInfo)
Public property IsSpecialName  Gets a value indicating whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator.(inherited from FieldInfo)
Public property IsStatic  Gets a value indicating whether the field is static.(inherited from FieldInfo)
Public property MemberType  Gets a MemberTypes value indicating that this member is a field.(inherited from FieldInfo)
Public property MetadataToken  Gets a value that identifies a metadata element.(inherited from MemberInfo)
Public property Module Overridden. Gets the module in which the type that contains this field is being defined.
Public property Name Overridden. Indicates the name of this field. This property is read-only.
Public property ReflectedType Overridden. Indicates the reference to the Type object from which this object was obtained. This property is read-only.
Top

  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetCustomAttributes Overloaded. Overridden. Returns the custom attributes defined for this field.
Public method Static GetFieldFromHandle  Overloaded. Gets a FieldInfo for the field represented by a handle. (inherited from FieldInfo)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetOptionalCustomModifiers  Gets an array of types that identify the optional custom modifiers of the field. (inherited from FieldInfo)
Public method GetRawConstantValue  Returns a literal value associated with the field by a compiler. (inherited from FieldInfo)
Public method GetRequiredCustomModifiers  Gets an array of types that identify the required custom modifiers of the property. (inherited from FieldInfo)
Public method GetToken Returns the token representing this field.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method GetValue Overridden. Retrieves the value of the field supported by the given object.
Public method GetValueDirect  Returns the value of a field supported by a given object. (inherited from FieldInfo)
Public method IsDefined Overridden. Indicates whether an attribute having the specified type is defined on a field.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method SetConstant Sets the default value of this field.
Public method SetCustomAttribute Overloaded. Sets a custom attribute.
Public method SetMarshal Describes the native marshaling of the field.
Public method SetOffset Specifies the field layout.
Public method SetValue Overloaded. Sets the value of the field.
Public method SetValueDirect  Sets the value of the field supported by the given object. (inherited from FieldInfo)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft