共用方式為


GetMessage 方法 (Boolean)

Returns a String that contains the error message.

命名空間:  Microsoft.SqlServer.Dts.Design
組件:  Microsoft.SqlServer.Dts.Design (在 Microsoft.SqlServer.Dts.Design.dll 中)

語法

'宣告
Function GetMessage ( _
    descriptionOnly As Boolean _
) As String
'用途
Dim instance As IComponentErrorInfo
Dim descriptionOnly As Boolean
Dim returnValue As String

returnValue = instance.GetMessage(descriptionOnly)
string GetMessage(
    bool descriptionOnly
)
String^ GetMessage(
    bool descriptionOnly
)
abstract GetMessage : 
        descriptionOnly:bool -> string 
function GetMessage(
    descriptionOnly : boolean
) : String

參數

  • descriptionOnly
    型別:System. . :: . .Boolean
    A Boolean that indicates whether the error message only is returned, or the error message plus component and subcomponent information.

傳回值

型別:System. . :: . .String
When true, a String that contains the error message. When false, a String that contains the error message, component and subcomponent information.

備註

Passing false to this method is the same as calling the GetMessage method.