SfcObjectQuery Constructor (ISfcDomain, SfcObjectQueryMode)
Initializes a new instance of the SfcObjectQuery class with the specified ___domain and active queries mode. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Declaration
Public Sub New ( _
___domain As ISfcDomain, _
activeQueriesMode As SfcObjectQueryMode _
)
'Usage
Dim ___domain As ISfcDomain
Dim activeQueriesMode As SfcObjectQueryMode
Dim instance As New SfcObjectQuery(___domain, _
activeQueriesMode)
public SfcObjectQuery(
ISfcDomain ___domain,
SfcObjectQueryMode activeQueriesMode
)
public:
SfcObjectQuery(
ISfcDomain^ ___domain,
SfcObjectQueryMode activeQueriesMode
)
new :
___domain:ISfcDomain *
activeQueriesMode:SfcObjectQueryMode -> SfcObjectQuery
public function SfcObjectQuery(
___domain : ISfcDomain,
activeQueriesMode : SfcObjectQueryMode
)
Parameters
- ___domain
Type: Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomain
The root of the SfcSfcInstance object tree to query.
- activeQueriesMode
Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode
The CachedQueries avoids any issues with more than one running query by first caching the query results and closing the query data reader.