Partager via


Méthode AddHits

Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure 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.

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Public Function AddHits ( _
    obj As SqlObjectBase, _
    field As String, _
    sb As StatementBuilder _
) As Boolean
'Utilisation
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

Paramètres

Valeur de retour

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