Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Add summary to AutoOpenAttribute (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
svick authored and cartermp committed Jun 20, 2018
1 parent 63fd8b5 commit fb2ce39
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/conceptual/core.autoopenattribute-class-[fsharp].md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ms.assetid: d48500f4-6fdf-4224-8a78-1a26a28ab5ce

# Core.AutoOpenAttribute Class (F#)

This attribute is used for two purposes. When applied to an assembly, it must be given a string argument, and this argument must indicate 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.
This attribute can be used to designate a module or a namespace that is opened automatically.

**Namespace/Module Path:** Microsoft.FSharp.Core

Expand All @@ -34,6 +34,11 @@ end
```

## Remarks

This attribute is used for two purposes.

When applied to an assembly, it must be given a string argument, and this argument must indicate 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 module within an assembly, then the attribute must not be given any arguments. When the enclosing namespace is opened in user source code, the module is also implicitly opened.

You can also use the short form of the name, `AutoOpen`.
Expand Down Expand Up @@ -63,4 +68,4 @@ Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
Supported in: 2.0, 4.0, Portable

## See Also
[Microsoft.FSharp.Core Namespace (F#)](Microsoft.FSharp.Core-Namespace-%5BFSharp%5D.md)
[Microsoft.FSharp.Core Namespace (F#)](Microsoft.FSharp.Core-Namespace-%5BFSharp%5D.md)

0 comments on commit fb2ce39

Please sign in to comment.