Table of contents
Collapse the table of content
Expand the table of content

Core.CompilerMessageAttribute Class (F#)

Den Delimarsky|Last Updated: 8/18/2017
1 Contributor

Indicates that a message should be emitted when F# source code uses this construct.

Namespace/Module Path: Microsoft.FSharp.Core

Assembly: FSharp.Core (in FSharp.Core.dll)


[<AttributeUsage(AttributeTargets.All, AllowMultiple = false)>]
type CompilerMessageAttribute =
new CompilerMessageAttribute : string * int -> CompilerMessageAttribute
member this.IsError :  bool with get, set
member this.IsHidden :  bool with get, set
member this.Message :  string
member this.MessageNumber :  int


You can also use the short form of the name, CompilerMessage.


newCreates an instance of the attribute.

Instance Members

IsErrorIndicates if the message should indicate a compiler error. Error numbers less than 10000 are considered reserved for use by the F# compiler and libraries.
IsHiddenIndicates if the construct should always be hidden in an editing environment.
MessageIndicates the warning message to be emitted when F# source code uses this construct
MessageNumberIndicates the number associated with the message.


Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

Microsoft.FSharp.Core Namespace (F#)

© 2020 Microsoft