Метод 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
Параметры
- obj
Тип: Microsoft.SqlServer.Management.Sdk.Sfc.SqlObjectBase
The SqlObjectBase object that that the field and StatementBuilder object belong to.
- field
Тип: System.String
The name of the field.
- sb
Тип: Microsoft.SqlServer.Management.Sdk.Sfc.StatementBuilder
The StatementBuilder object that is used to construct Transact-SQL statements.
Возвращаемое значение
Тип: System.Boolean
true if a ConditionedSql object is added; otherwise, false.