Export (0) Print
Expand All

FieldBuilder Methods

The FieldBuilder type exposes the following members.

  Name Description
Public method Equals Returns a value that indicates whether this instance is equal to a specified object. (Inherited from FieldInfo.)
Public method GetCustomAttributes(Boolean) Returns all the custom attributes defined for this field. (Overrides MemberInfo.GetCustomAttributes(Boolean).)
Public method GetCustomAttributes(Type, Boolean) Returns all the custom attributes defined for this field identified by the given type. (Overrides MemberInfo.GetCustomAttributes(Type, Boolean).)
Public method GetCustomAttributesData Returns a list of CustomAttributeData objects representing data about the attributes that have been applied to the target member. (Inherited from MemberInfo.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from FieldInfo.)
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 Retrieves the value of the field supported by the given object. (Overrides FieldInfo.GetValue(Object).)
Public method GetValueDirect Returns the value of a field supported by a given object. (Inherited from FieldInfo.)
Public method IsDefined Indicates whether an attribute having the specified type is defined on a field. (Overrides MemberInfo.IsDefined(Type, Boolean).)
Public method SetConstant Sets the default value of this field.
Public method SetCustomAttribute(CustomAttributeBuilder) Sets a custom attribute using a custom attribute builder.
Public method SetCustomAttribute(ConstructorInfo, Byte[]) Sets a custom attribute using a specified custom attribute blob.
Public method SetMarshal Obsolete. Describes the native marshaling of the field.
Public method SetOffset Specifies the field layout.
Public method SetValue(Object, Object) Sets the value of the field supported by the given object. (Inherited from FieldInfo.)
Public method SetValue(Object, Object, BindingFlags, Binder, CultureInfo) Sets the value of the field supported by the given object. (Overrides FieldInfo.SetValue(Object, Object, BindingFlags, Binder, CultureInfo).)
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

  Name Description
Public Extension Method GetCustomAttribute(Type) Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttribute(Type, Boolean) Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttribute<T>() Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttribute<T>(Boolean) Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes() Overloaded. Retrieves a collection of custom attributes that are applied to a specified member. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes(Type) Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified member. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes<T>() Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified member. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes<T>(Boolean) Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member. (Defined by CustomAttributeExtensions.)
Public Extension Method IsDefined Indicates whether custom attributes of a specified type are applied to a specified member. (Defined by CustomAttributeExtensions.)
Top

  Name Description
Explicit interface implemetation Private method _FieldBuilder.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers.
Explicit interface implemetation Private method _FieldBuilder.GetTypeInfo Retrieves the type information for an object, which can then be used to get the type information for an interface.
Explicit interface implemetation Private method _FieldBuilder.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Explicit interface implemetation Private method _FieldBuilder.Invoke Provides access to properties and methods exposed by an object.
Explicit interface implemetation Private method _FieldInfo.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from FieldInfo.)
Explicit interface implemetation Private method _FieldInfo.GetType Gets a Type object representing the FieldInfo type. (Inherited from FieldInfo.)
Explicit interface implemetation Private method _FieldInfo.GetTypeInfo Retrieves the type information for an object, which can then be used to get the type information for an interface. (Inherited from FieldInfo.)
Explicit interface implemetation Private method _FieldInfo.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from FieldInfo.)
Explicit interface implemetation Private method _FieldInfo.Invoke Provides access to properties and methods exposed by an object. (Inherited from FieldInfo.)
Explicit interface implemetation Private method _MemberInfo.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from MemberInfo.)
Explicit interface implemetation Private method _MemberInfo.GetType Gets a Type object representing the MemberInfo class. (Inherited from MemberInfo.)
Explicit interface implemetation Private method _MemberInfo.GetTypeInfo Retrieves the type information for an object, which can then be used to get the type information for an interface. (Inherited from MemberInfo.)
Explicit interface implemetation Private method _MemberInfo.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from MemberInfo.)
Explicit interface implemetation Private method _MemberInfo.Invoke Provides access to properties and methods exposed by an object. (Inherited from MemberInfo.)
Top
Show:
© 2014 Microsoft