Costruttore SfcObjectQuery (ISfcDomain, SfcObjectQueryMode)
Initializes a new instance of the SfcObjectQuery class with the specified domain and active queries mode. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.
Spazio dei nomi Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintassi
'Dichiarazione
Public Sub New ( _
domain As ISfcDomain, _
activeQueriesMode As SfcObjectQueryMode _
)
'Utilizzo
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
)
Parametri
- domain
Tipo: Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .ISfcDomain
The root of the SfcSfcInstance object tree to query.
- activeQueriesMode
Tipo: 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.
Vedere anche