Sets error text for the specified item.
Namespace:  Microsoft.VisualStudio.VsWizard
Assembly:  Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)
Syntax
声明
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
)
Parameters
- bstrDescription
 Type: System.String
 A string containing a description of the error.
- ulHRESULT
 Type: System.UInt32
 The status code returned by the wizard.
- dwReserved
 Type: System.UInt32
 Reserved.
- bstrHelpKeyword
 Type: System.String
 The keyword to attach to a help button on the message box
- bstrSource
 Type: System.String
 A string containing the name of the error source.
Implements
IVCWizCtlUI.SetErrorInfo(String, UInt32, UInt32, String, String)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.