ErrorCategoryInfo.GetMessage Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetMessage() | Concise text description based on Category | 
| GetMessage(CultureInfo) | Concise text description based on Category | 
GetMessage()
Concise text description based on Category
public:
 System::String ^ GetMessage();public:
 Platform::String ^ GetMessage();std::wstring GetMessage();public string GetMessage();member this.GetMessage : unit -> stringPublic Function GetMessage () As StringReturns
Concise text description.
Remarks
GetMessage returns a concise string which categorizes the error, based on Category and including the other fields of ErrorCategoryInfo as appropriate. This string is much shorter than Message or Message, since it only categorizes the error and does not contain a full description or recommended actions. The default host will display this string instead of the full message if shell variable $ErrorView is set to "CategoryView".
Applies to
GetMessage(CultureInfo)
Concise text description based on Category
public:
 System::String ^ GetMessage(System::Globalization::CultureInfo ^ uiCultureInfo);public string GetMessage(System.Globalization.CultureInfo uiCultureInfo);member this.GetMessage : System.Globalization.CultureInfo -> stringPublic Function GetMessage (uiCultureInfo As CultureInfo) As StringParameters
- uiCultureInfo
- CultureInfo
Culture in which to display message.
Returns
Concise text description.
Remarks
GetMessage returns a concise string which categorizes the error, based on Category and including the other fields of ErrorCategoryInfo as appropriate. This string is much shorter than Message or Message, since it only categorizes the error and does not contain a full description or recommended actions. The default host will display this string instead of the full message if shell variable $ErrorView is set to "CategoryView".