Freigeben über


ManagementPackWarningMessages.GetMessage Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Retrieves localized exception messages for the management pack–based exceptions that are listed in the ManagementPackWarningCode enumeration.

Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim warningCode As ManagementPackWarningCode
Dim returnValue As String

returnValue = ManagementPackWarningMessages.GetMessage(warningCode)

Syntax

'Declaration
Public Shared Function GetMessage ( _
    warningCode As ManagementPackWarningCode _
) As String
public static string GetMessage (
    ManagementPackWarningCode warningCode
)
public:
static String^ GetMessage (
    ManagementPackWarningCode warningCode
)
public static String GetMessage (
    ManagementPackWarningCode warningCode
)
public static function GetMessage (
    warningCode : ManagementPackWarningCode
) : String

Parameters

  • warningCode
    The warning code for which to get the message.

Return Value

A string that contains exception messages for the management pack–based exceptions that are listed in the ManagementPackWarningCode enumeration.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ManagementPackWarningMessages Class
ManagementPackWarningMessages Members
Microsoft.EnterpriseManagement.Common Namespace