MESSAGETYPE

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Specifies the message type and reason.

Syntax

enum enum_MESSAGETYPE { 
   MT_OUTPUTSTRING      = 0x0000001,
   MT_MESSAGEBOX        = 0x00000002,
   MT_TYPE_MASK         = 0x000000FF,
   MT_REASON_EXCEPTION  = 0x00000100,
   MT_REASON_TRACEPOINT = 0x00000200,
   MT_REASON_MASK       = 0x0000FF00
};
typedef DWORD MESSAGETYPE;
public enum enum_MESSAGETYPE { 
   MT_OUTPUTSTRING      = 0x0000001,
   MT_MESSAGEBOX        = 0x00000002,
   MT_TYPE_MASK         = 0x000000FF,
   MT_REASON_EXCEPTION  = 0x00000100,
   MT_REASON_TRACEPOINT = 0x00000200,
   MT_REASON_MASK       = 0x0000FF00
};

Fields

MT_OUTPUTSTRING
Indicates that the message should be sent to the output window. This is mutually exclusive from MT_MESSAGEBOX.

MT_MESSAGEBOX
Indicates that the message should be shown in a message box. This is mutually exclusive from MT_OUTPUTSTRING.

MT_TYPE_MASK
A mask value to isolate the destination for the message.

MT_REASON_EXCEPTION
Indicates that a message box is being shown as a result of an exception. This is mutually exclusive from MT_REASON_TRACEPOINT.

MT_REASON_TRACEPOINT
Indicates that a message box is being shown as a result of hitting a tracepoint. This is mutually exclusive to MT_REASON_EXCEPTION.

MT_REASON_MASK
A mask value to isolate the reason for the message being shown.

Remarks

These values are returned from the GetMessage and GetErrorMessage methods.

One of the reason values can be combined with one of the output destination values using a bitwise OR.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also