ErrorSupport.GetFormattedMessage 메서드

Gets the error message for an HRESULT and formats the message by populating parameters with the supplied values.

네임스페이스:  Microsoft.SqlServer.Dts.ManagedMsg
어셈블리:  Microsoft.SqlServer.DtsMsg(Microsoft.SqlServer.DtsMsg.dll)

구문

‘선언
Public Function GetFormattedMessage ( _
    hResult As Integer, _
    <OutAttribute> ByRef strFormattedText As String, _
    ParamArray paramList As Object() _
) As Integer
‘사용 방법
Dim instance As ErrorSupport 
Dim hResult As Integer 
Dim strFormattedText As String 
Dim paramList As Object()
Dim returnValue As Integer 

returnValue = instance.GetFormattedMessage(hResult, _
    strFormattedText, paramList)
public int GetFormattedMessage(
    int hResult,
    out string strFormattedText,
    params Object[] paramList
)
public:
int GetFormattedMessage(
    int hResult, 
    [OutAttribute] String^% strFormattedText, 
    ... array<Object^>^ paramList
)
member GetFormattedMessage : 
        hResult:int * 
        strFormattedText:string byref * 
        paramList:Object[] -> int
public function GetFormattedMessage(
    hResult : int, 
    strFormattedText : String, 
    ... paramList : Object[]
) : int

매개 변수

  • hResult
    유형: System.Int32
    The HRESULT for which to return the formatted error message.
  • strFormattedText
    유형: System.String%
    The formatted error message.
  • paramList
    유형: array<System.Object[]
    An array of parameter values required for the formatted error message.

반환 값

유형: System.Int32
A value that indicates whether the GetFormattedMessage method succeeded or failed. A value of 0 (zero) indicates success.

참고 항목

참조

ErrorSupport 클래스

Microsoft.SqlServer.Dts.ManagedMsg 네임스페이스