共用方式為


VCWizCtlClass.SetErrorInfo 方法

設定指定之項目的錯誤文字。

命名空間:  Microsoft.VisualStudio.VsWizard
組件:  Microsoft.VisualStudio.VsWizard (在 Microsoft.VisualStudio.VsWizard.dll 中)

語法

'宣告
Public Overridable Sub SetErrorInfo ( _
    bstrDescription As String, _
    ulHRESULT As UInteger, _
    dwReserved As UInteger, _
    bstrHelpKeyword As String, _
    bstrSource As String _
)
public virtual void SetErrorInfo(
    string bstrDescription,
    uint ulHRESULT,
    uint dwReserved,
    string bstrHelpKeyword,
    string bstrSource
)
public:
virtual void SetErrorInfo(
    [InAttribute] String^ bstrDescription, 
    [InAttribute] unsigned int ulHRESULT, 
    [InAttribute] unsigned int dwReserved, 
    [InAttribute] String^ bstrHelpKeyword, 
    [InAttribute] String^ bstrSource
)
abstract SetErrorInfo : 
        bstrDescription:string * 
        ulHRESULT:uint32 * 
        dwReserved:uint32 * 
        bstrHelpKeyword:string * 
        bstrSource:string -> unit 
override SetErrorInfo : 
        bstrDescription:string * 
        ulHRESULT:uint32 * 
        dwReserved:uint32 * 
        bstrHelpKeyword:string * 
        bstrSource:string -> unit 
public function SetErrorInfo(
    bstrDescription : String, 
    ulHRESULT : uint, 
    dwReserved : uint, 
    bstrHelpKeyword : String, 
    bstrSource : String
)

參數

  • bstrDescription
    型別:System.String
    包含錯誤描述的字串。
  • bstrHelpKeyword
    型別:System.String
    要附加至訊息方塊上之說明按鈕的關鍵字。
  • bstrSource
    型別:System.String
    包含錯誤來源名稱的字串。

實作

IVCWizCtlUI.SetErrorInfo(String, UInt32, UInt32, String, String)

.NET Framework 安全性

請參閱

參考

VCWizCtlClass 類別

Microsoft.VisualStudio.VsWizard 命名空間