Header menu logo FSharp.Core

AutoOpenAttribute Type

Indicates a construct is automatically opened when brought into scope through an assembly reference or then opening of the containing namespace or module.

When applied to an assembly, this attribute must be given a string argument, and this indicates a valid module or namespace in that assembly. Source code files compiled with a reference to this assembly are processed in an environment where the given path is automatically opened. When applied to a type or module within an assembly, then the attribute must not be given any arguments, and the type or module is implicitly opened when its enclosing namespace or module is opened.

Constructors

Constructor Description

AutoOpenAttribute(path)

Full Usage: AutoOpenAttribute(path)

Parameters:
    path : string - The namespace or module to be automatically opened when an assembly is referenced or an enclosing module opened.

Returns: AutoOpenAttribute AutoOpenAttribute

Creates an attribute used to mark a namespace or module path to be 'automatically opened' when an assembly is referenced

path : string

The namespace or module to be automatically opened when an assembly is referenced or an enclosing module opened.

Returns: AutoOpenAttribute

AutoOpenAttribute

AutoOpenAttribute()

Full Usage: AutoOpenAttribute()

Returns: AutoOpenAttribute AutoOpenAttribute

Creates an attribute used to mark a module as 'automatically opened' when the enclosing namespace is opened

Returns: AutoOpenAttribute

AutoOpenAttribute

Instance members

Instance member Description

this.Path

Full Usage: this.Path

Returns: string
Indicates the namespace or module to be automatically opened when an assembly is referenced
 or an enclosing module opened.
Returns: string

Type something to start searching.