共用方式為


SqlUserInteractionServices.GetErrorMessageName 方法

傳回指定之錯誤訊息的名稱。

命名空間:  Microsoft.Data.Schema.Sql
組件:  Microsoft.Data.Schema.Sql (在 Microsoft.Data.Schema.Sql.dll 中)

語法

'宣告
Protected Overridable Function GetErrorMessageName ( _
    errorMsg As ISqlErrorMessage, _
    escape As Boolean, _
    fullName As Boolean, _
    includeType As Boolean _
) As String
protected virtual string GetErrorMessageName(
    ISqlErrorMessage errorMsg,
    bool escape,
    bool fullName,
    bool includeType
)
protected:
virtual String^ GetErrorMessageName(
    ISqlErrorMessage^ errorMsg, 
    bool escape, 
    bool fullName, 
    bool includeType
)
abstract GetErrorMessageName : 
        errorMsg:ISqlErrorMessage * 
        escape:bool * 
        fullName:bool * 
        includeType:bool -> string 
override GetErrorMessageName : 
        errorMsg:ISqlErrorMessage * 
        escape:bool * 
        fullName:bool * 
        includeType:bool -> string 
protected function GetErrorMessageName(
    errorMsg : ISqlErrorMessage, 
    escape : boolean, 
    fullName : boolean, 
    includeType : boolean
) : String

參數

  • escape
    型別:System.Boolean
    指出是否應該逸出名稱的值 (預設會使用括弧)。這個基底類別中會忽略它,但是可用於衍生類別。
  • fullName
    型別:System.Boolean
    指出是否傳回完整名稱的值。這個基底類別中會忽略它,但是可用於衍生類別。
  • includeType
    型別:System.Boolean
    說明是否應該將型別做為名稱一部分傳回的值。這個基底類別中會忽略它,但是可用於衍生類別。

傳回值

型別:System.String

.NET Framework 安全性

請參閱

參考

SqlUserInteractionServices 類別

Microsoft.Data.Schema.Sql 命名空間