共用方式為


IsHit 方法

不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 Tests whether the specified field has caused this ConditionedSql object to be added.

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

語法

'宣告
Public Function IsHit ( _
    field As String _
) As Boolean
'用途
Dim instance As ConditionedSql
Dim field As String
Dim returnValue As Boolean

returnValue = instance.IsHit(field)
public bool IsHit(
    string field
)
public:
bool IsHit(
    String^ field
)
member IsHit : 
        field:string -> bool 
public function IsHit(
    field : String
) : boolean

參數

傳回值

型別:System. . :: . .Boolean
true if the field has caused this ConditionedSql object to be added; otherwise, false. If the AcceptsMultipleHits property is set to true, this method always returns false.