Export (0) Print
Expand All

FieldBuilder Members

FieldBuilder overview

Public Properties

public propertyAttributes Overridden. Indicates the attributes of this field. This property is read-only.
public propertyDeclaringType Overridden. Indicates a reference to the Type object for the type that declares this field. This property is read-only.
public propertyFieldHandle Overridden. Indicates the internal metadata handle for this field. This property is read-only.
public propertyFieldType Overridden. Indicates the Type object that represents the type of this field. This property is read-only.
public propertyIsAssembly (inherited from FieldInfo) Gets a value indicating whether this field has Assembly level visibility.
public propertyIsFamily (inherited from FieldInfo) Gets a value indicating whether this field has Family level visibility.
public propertyIsFamilyAndAssembly (inherited from FieldInfo) Gets a value indicating whether this field has FamilyAndAssembly level visibility.
public propertyIsFamilyOrAssembly (inherited from FieldInfo) Gets a value indicating whether this field has FamilyOrAssembly level visibility.
public propertyIsInitOnly (inherited from FieldInfo) Gets a value indicating whether the field can only be set in the body of the constructor.
public propertyIsLiteral (inherited from FieldInfo) Gets a value indicating whether the value is written at compile time and cannot be changed.
public propertyIsNotSerialized (inherited from FieldInfo) Gets a value indicating whether this field has the NotSerialized attribute.
public propertyIsPinvokeImpl (inherited from FieldInfo) Gets a value indicating whether the corresponding PinvokeImpl attribute is set in FieldAttributes.
public propertyIsPrivate (inherited from FieldInfo) Gets a value indicating whether the field is private.
public propertyIsPublic (inherited from FieldInfo) Gets a value indicating whether the field is public.
public propertyIsSpecialName (inherited from FieldInfo) Gets a value indicating whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator.
public propertyIsStatic (inherited from FieldInfo) Gets a value indicating whether the field is static.
public propertyMemberType (inherited from FieldInfo) Overridden. Gets the Type of property reflected by this FieldInfo object. The retrieved value indicates that this member is a field.
public propertyName Overridden. Indicates the name of this field. This property is read-only.
public propertyReflectedType Overridden. Indicates the reference to the Type object from which this object was obtained. This property is read-only.

Public Methods

public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetCustomAttributes Overloaded. Overridden. Returns the custom attributes defined for this field.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetToken Returns the token representing this field.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodGetValue Overridden. Retrieves the value of the field supported by the given object.
public methodGetValueDirect (inherited from FieldInfo) Returns the value of a field supported by a given object.
public methodIsDefined Overridden. Indicates whether an attribute having the specified type is defined on a field.
public methodSetConstant Sets the default value of this field.
public methodSetCustomAttribute Overloaded. Sets a custom attribute.
public methodSetMarshal Describes the native marshaling of the field.
public methodSetOffset Specifies the field layout.
public methodSetValue Overloaded.
public methodSetValueDirect (inherited from FieldInfo) Sets the value of the field supported by the given object.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

FieldBuilder Class | System.Reflection.Emit Namespace

Show:
© 2014 Microsoft