다음을 통해 공유


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

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