Condividi tramite


SfcObjectQuery Constructors

Definition

Overloads

SfcObjectQuery(IAlienRoot)
SfcObjectQuery(ISfcDomain)

Create an object query for a particular domain instance object hierarchy and connection. If you use ExecuteIterator and want to make another query before closing it, consider using the overload which indicates support for multiple active queries, or simply use ExecuteCollection to avoid it.

SfcObjectQuery(ISfcDomain, SfcObjectQueryMode)

Create an object query for a particular domain instance. The query mode determines how requests to return an open iterator are handled and the particular connection to use.

SfcObjectQuery(IAlienRoot)

public SfcObjectQuery (Microsoft.SqlServer.Management.Sdk.Sfc.IAlienRoot root);
new Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQuery : Microsoft.SqlServer.Management.Sdk.Sfc.IAlienRoot -> Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQuery
Public Sub New (root As IAlienRoot)

Parameters

root
IAlienRoot

Applies to

SfcObjectQuery(ISfcDomain)

Create an object query for a particular domain instance object hierarchy and connection. If you use ExecuteIterator and want to make another query before closing it, consider using the overload which indicates support for multiple active queries, or simply use ExecuteCollection to avoid it.

public SfcObjectQuery (Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomain domain);
new Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQuery : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomain -> Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQuery
Public Sub New (domain As ISfcDomain)

Parameters

domain
ISfcDomain

The domain of the SfcInstance object tree to query.

Applies to

SfcObjectQuery(ISfcDomain, SfcObjectQueryMode)

Create an object query for a particular domain instance. The query mode determines how requests to return an open iterator are handled and the particular connection to use.

public SfcObjectQuery (Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomain domain, Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode activeQueriesMode);
new Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQuery : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomain * Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode -> Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQuery
Public Sub New (domain As ISfcDomain, activeQueriesMode As SfcObjectQueryMode)

Parameters

domain
ISfcDomain

The root of the SfcInstance object tree to query.

activeQueriesMode
SfcObjectQueryMode

CachedQueries avoids any issues with more than one running query by first caching the query results and closing the query data reader. SingleActive MultipleActiveQueries indicated that any provided connection via the domain's GetConnection method should assume that the main connection is busy with an already-active query and an alternate connection may be more suitable to use.

Applies to