Header menu logo F# Compiler Guide

FSharpAttribute Type

Represents a custom attribute attached to F# source code or a compiler .NET component

Instance members

Instance member Description

this.AttributeType

Full Usage: this.AttributeType

Returns: FSharpEntity

The type of the attribute

Returns: FSharpEntity

this.ConstructorArguments

Full Usage: this.ConstructorArguments

Returns: IList<FSharpType * obj>

The arguments to the constructor for the attribute

Returns: IList<FSharpType * obj>

this.Format

Full Usage: this.Format

Parameters:
Returns: string

Format the attribute using the rules of the given display context

context : FSharpDisplayContext
Returns: string

this.IsAttribute

Full Usage: this.IsAttribute

Returns: bool

Indicates if attribute matches the full name of the given type parameter

Returns: bool

this.IsUnresolved

Full Usage: this.IsUnresolved

Returns: bool

Indicates if the attribute type is in an unresolved assembly

Returns: bool

this.NamedArguments

Full Usage: this.NamedArguments

Returns: IList<FSharpType * string * bool * obj>

The named arguments for the attribute

Returns: IList<FSharpType * string * bool * obj>

this.Range

Full Usage: this.Range

Returns: range

Get the range of the name of the attribute

Returns: range

Type something to start searching.