IBusinessLogicResolver.InvokeChangeHandler 方法
此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Invokes a handler when changes to the method are detected.
命名空間: Microsoft.SqlServer.Replication.BusinessLogicSupport
組件: Microsoft.SqlServer.Replication.BusinessLogicSupport (在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)
語法
'宣告
Public MustOverride Function InvokeChangeHandler ( _
currentChangeState As ChangeStates, _
methodName As String, _
sourceIdentifier As SourceIdentifier, _
sourceDataSet As DataSet, _
ByRef customDataSet As DataSet, _
ByRef logLevel As Integer, _
ByRef logMessage As String _
) As ActionOnDataChange
'用途
Dim instance As IBusinessLogicResolver
Dim currentChangeState As ChangeStates
Dim methodName As String
Dim sourceIdentifier As SourceIdentifier
Dim sourceDataSet As DataSet
Dim customDataSet As DataSet
Dim logLevel As Integer
Dim logMessage As String
Dim returnValue As ActionOnDataChange
returnValue = instance.InvokeChangeHandler(currentChangeState, _
methodName, sourceIdentifier, sourceDataSet, _
customDataSet, logLevel, logMessage)
public abstract ActionOnDataChange InvokeChangeHandler(
ChangeStates currentChangeState,
string methodName,
SourceIdentifier sourceIdentifier,
DataSet sourceDataSet,
ref DataSet customDataSet,
ref int logLevel,
ref string logMessage
)
public:
virtual ActionOnDataChange InvokeChangeHandler(
ChangeStates currentChangeState,
String^ methodName,
SourceIdentifier sourceIdentifier,
DataSet^ sourceDataSet,
DataSet^% customDataSet,
int% logLevel,
String^% logMessage
) abstract
abstract InvokeChangeHandler :
currentChangeState:ChangeStates *
methodName:string *
sourceIdentifier:SourceIdentifier *
sourceDataSet:DataSet *
customDataSet:DataSet byref *
logLevel:int byref *
logMessage:string byref -> ActionOnDataChange
public abstract function InvokeChangeHandler(
currentChangeState : ChangeStates,
methodName : String,
sourceIdentifier : SourceIdentifier,
sourceDataSet : DataSet,
customDataSet : DataSet,
logLevel : int,
logMessage : String
) : ActionOnDataChange
參數
- currentChangeState
型別:Microsoft.SqlServer.Replication.BusinessLogicSupport.ChangeStates
The current change state.
- methodName
型別:System.String
The method name.
- sourceIdentifier
型別:Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier
The source identifier.
- sourceDataSet
型別:System.Data.DataSet
The source data set.
- customDataSet
型別:System.Data.DataSet%
The custom data set.
- logLevel
型別:System.Int32%
The log level
- logMessage
型別:System.String%
The log message.
傳回值
型別:Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnDataChange
The ActionOnDataChange that will be taken by the process after the custom business logic has executed.