Core.CompilerMessageAttribute Class (F#)
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(32767, AllowMultiple = false)>]
[<Sealed>]
type CompilerMessageAttribute =
class
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
end
Remarks
You can also use the short form of the name, CompilerMessage.
Constructors
Member |
Description |
---|---|
Creates an instance of the attribute. |
Instance Members
Member |
Description |
---|---|
Indicates if the message should indicate a compiler error. Error numbers less than 10000 are considered reserved for use by the F# compiler and libraries. |
|
Indicates if the construct should always be hidden in an editing environment. |
|
Indicates the warning message to be emitted when F# source code uses this construct |
|
Indicates the number associated with the message. |
Platforms
Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2
Version Information
F# Runtime
Supported in: 2.0, 4.0
Silverlight
Supported in: 3