This documentation is archived and is not being maintained.

FieldBuilder Properties

The FieldBuilder type exposes the following members.

  NameDescription
Public property Attributes Indicates the attributes of this field. This property is read-only. (Overrides FieldInfo.Attributes.)
Public property DeclaringType Indicates a reference to the Type object for the type that declares this field. This property is read-only. (Overrides MemberInfo.DeclaringType.)
Public property FieldHandle Indicates the internal metadata handle for this field. This property is read-only. (Overrides FieldInfo.FieldHandle.)
Public property FieldType Indicates the Type object that represents the type of this field. This property is read-only. (Overrides FieldInfo.FieldType.)
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 IsSecurityCritical Gets a value that indicates whether the current field is security-critical or security-safe-critical at the current trust level. (Inherited from FieldInfo.)
Public property IsSecuritySafeCritical Gets a value that indicates whether the current field is security-safe-critical at the current trust level. (Inherited from FieldInfo.)
Public property IsSecurityTransparent Gets a value that indicates whether the current field is transparent at the current trust level. (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 Gets the module in which the type that contains this field is being defined. (Overrides MemberInfo.Module.)
Public property Name Indicates the name of this field. This property is read-only. (Overrides MemberInfo.Name.)
Public property ReflectedType Indicates the reference to the Type object from which this object was obtained. This property is read-only. (Overrides MemberInfo.ReflectedType.)
Top
Show: