Header menu logo F# Compiler Guide

FSharpField Type

A subtype of FSharpSymbol that represents a record or union case field as seen by the F# language

Instance members

Instance member Description

this.AnonRecordFieldDetails

Full Usage: this.AnonRecordFieldDetails

Returns: FSharpAnonRecordTypeDetails * FSharpType[] * int

If the field is from an anonymous record type then get the details of the field including the index in the sorted array of fields

Returns: FSharpAnonRecordTypeDetails * FSharpType[] * int

this.DeclarationLocation

Full Usage: this.DeclarationLocation

Returns: range

Get the declaration location of the field

Returns: range

this.DeclaringEntity

Full Usage: this.DeclaringEntity

Returns: FSharpEntity option

Get the declaring entity of this field, if any. Fields from anonymous types do not have a declaring entity

Returns: FSharpEntity option

this.DeclaringUnionCase

Full Usage: this.DeclaringUnionCase

Returns: FSharpUnionCase option

Returns the declaring union case symbol

Returns: FSharpUnionCase option

this.FieldAttributes

Full Usage: this.FieldAttributes

Returns: IList<FSharpAttribute>

Get the attributes attached to generated field

Returns: IList<FSharpAttribute>

this.FieldType

Full Usage: this.FieldType

Returns: FSharpType

Get the type of the field, w.r.t. the generic parameters of the enclosing type constructor

Returns: FSharpType

this.IsAnonRecordField

Full Usage: this.IsAnonRecordField

Returns: bool

Is this a field from an anonymous record type?

Returns: bool

this.IsCompilerGenerated

Full Usage: this.IsCompilerGenerated

Returns: bool

Indicates a compiler generated field, not visible to Intellisense or name resolution

Returns: bool

this.IsDefaultValue

Full Usage: this.IsDefaultValue

Returns: bool

Indicates if the field declared is declared 'DefaultValue'

Returns: bool

this.IsLiteral

Full Usage: this.IsLiteral

Returns: bool

Indicates if the field has a literal value

Returns: bool

this.IsMutable

Full Usage: this.IsMutable

Returns: bool

Indicates if the field is declared 'static'

Returns: bool

this.IsNameGenerated

Full Usage: this.IsNameGenerated

Returns: bool

Indicates if the field name was generated by compiler (e.g. ItemN names in union cases and DataN in exceptions). This API returns true for source defined symbols only.

Returns: bool

this.IsStatic

Full Usage: this.IsStatic

Returns: bool

Indicates a static field

Returns: bool

this.IsUnionCaseField

Full Usage: this.IsUnionCaseField

Returns: bool

Indicates if the field is declared in a union case

Returns: bool

this.IsUnresolved

Full Usage: this.IsUnresolved

Returns: bool

Indicates if the record field is for a type in an unresolved assembly

Returns: bool

this.IsVolatile

Full Usage: this.IsVolatile

Returns: bool

Indicates if the field is declared volatile

Returns: bool

this.LiteralValue

Full Usage: this.LiteralValue

Returns: obj option

Get the default initialization info, for static literals

Returns: obj option

this.Name

Full Usage: this.Name

Returns: string

Get the name of the field

Returns: string

this.PropertyAttributes

Full Usage: this.PropertyAttributes

Returns: IList<FSharpAttribute>

Get the attributes attached to generated property

Returns: IList<FSharpAttribute>

this.XmlDoc

Full Usage: this.XmlDoc

Returns: FSharpXmlDoc

Get the XML documentation for the entity

Returns: FSharpXmlDoc

this.XmlDocSig

Full Usage: this.XmlDocSig

Returns: string

Get the XML documentation signature for .xml file lookup for the field, used for .xml file lookup for compiled code

Returns: string

Type something to start searching.