PackageUpgradeResult.OnError 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當發生錯誤時會觸發事件。
public:
virtual bool OnError(Microsoft::SqlServer::Dts::Runtime::DtsObject ^ source, int errorCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext, System::String ^ idofInterfaceWithError);
public bool OnError(Microsoft.SqlServer.Dts.Runtime.DtsObject source, int errorCode, string subComponent, string description, string helpFile, int helpContext, string idofInterfaceWithError);
abstract member OnError : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string -> bool
override this.OnError : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string -> bool
Public Function OnError (source As DtsObject, errorCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer, idofInterfaceWithError As String) As Boolean
參數
- source
- DtsObject
錯誤的來源,造成事件的物件。
- errorCode
- Int32
一個用來識別錯誤訊息的整數。
- subComponent
- String
一個任意字串,用來識別源碼中的子模。
- description
- String
訊息的文字。
- helpFile
- String
通往包含詳細資訊的說明檔案路徑。
- helpContext
- Int32
說明檔案中主題的識別碼。
- idofInterfaceWithError
- String
是造成錯誤介面的 GUID 的文字表示。
傳回
那個凸起事件。