BaseCodeGeneratorWithSite.CreateExceptionMessage 方法

建立倘若發生例外狀況時要向使用者顯示的訊息。

命名空間:  Microsoft.VisualStudio.TextTemplating.VSHost
組件:  Microsoft.VisualStudio.TextTemplating.VSHost.10.0 (在 Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll 中)

語法

'宣告
Protected Overridable Function CreateExceptionMessage ( _
    exception As Exception _
) As String
protected virtual string CreateExceptionMessage(
    Exception exception
)
protected:
virtual String^ CreateExceptionMessage(
    Exception^ exception
)
abstract CreateExceptionMessage : 
        exception:Exception -> string 
override CreateExceptionMessage : 
        exception:Exception -> string 
protected function CreateExceptionMessage(
    exception : Exception
) : String

參數

傳回值

型別:System.String
要對使用者顯示的訊息。

.NET Framework 安全性

請參閱

參考

BaseCodeGeneratorWithSite 類別

Microsoft.VisualStudio.TextTemplating.VSHost 命名空間