ErrorCategoryInfo.GetMessage Method

Definition

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 -> string
Public Function GetMessage () As String

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".

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 -> string
Public Function GetMessage (uiCultureInfo As CultureInfo) As String

Parameters

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".

Applies to