MessageType property: PSMessage class

Description

This property indicates the type of the message, whether it's from the message catalog, if it's a warning, error, or information error.

This property returns a numeric value. The values are:

Value Description

0

Message is not a message catalog entry or there is no message.

1

Message has a severity of Error.

2

Message has a severity of Warning.

3

Message has a severity of Information.

This property is read-only.