共用方式為


ConditionedSqlList.AddHits 方法

不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 Tests the specified field against each of the ConditionedSql objects in the list. If the field is a trigger for the ConditionedSql object, the ConditionedSql object is added to the specified StatementBuilder object.

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public Function AddHits ( _
    obj As SqlObjectBase, _
    field As String, _
    sb As StatementBuilder _
) As Boolean
'用途
Dim instance As ConditionedSqlList 
Dim obj As SqlObjectBase 
Dim field As String 
Dim sb As StatementBuilder 
Dim returnValue As Boolean 

returnValue = instance.AddHits(obj, field, _
    sb)
public bool AddHits(
    SqlObjectBase obj,
    string field,
    StatementBuilder sb
)
public:
bool AddHits(
    SqlObjectBase^ obj, 
    String^ field, 
    StatementBuilder^ sb
)
member AddHits : 
        obj:SqlObjectBase * 
        field:string * 
        sb:StatementBuilder -> bool
public function AddHits(
    obj : SqlObjectBase, 
    field : String, 
    sb : StatementBuilder
) : boolean

參數

傳回值

型別:System.Boolean
true if a ConditionedSql object is added; otherwise, false.

請參閱

參考

ConditionedSqlList 類別

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間