Raises an error identified by the specified HRESULT, associates it with the specified component, help file, and help context, and allows execution to be cancelled.
命名空间: Microsoft.SqlServer.Dts.ManagedMsg
程序集: Microsoft.SqlServer.DtsMsg (in microsoft.sqlserver.dtsmsg.dll)
语法
声明
Public Sub FireError ( _
hResult As Integer, _
strSubComponent As String, _
strHelpFile As String, _
HelpContext As Integer, _
<OutAttribute> ByRef bCancel As Boolean _
)
public void FireError (
int hResult,
string strSubComponent,
string strHelpFile,
int HelpContext,
out bool bCancel
)
public:
void FireError (
int hResult,
String^ strSubComponent,
String^ strHelpFile,
int HelpContext,
[OutAttribute] bool% bCancel
)
public void FireError (
int hResult,
String strSubComponent,
String strHelpFile,
int HelpContext,
/** @attribute OutAttribute() */ /** @ref */ boolean bCancel
)
JScript 不支持由引用传递值类型参数。
参数
- hResult
The HRESULT of the underlying COM error.
- strSubComponent
The friendly name of the component.
- strHelpFile
The help file that will provide additional information about the messages that are raised.
- HelpContext
The location in the help file that will provide additional information about the messages that are raised.
- bCancel
true to cancel execution; otherwise, false.
线程安全
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
开发平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
目标平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
请参阅
参考
ErrorSupport Class
ErrorSupport Members
Microsoft.SqlServer.Dts.ManagedMsg Namespace