Méthode TSqlModel.GetObjects (DacQueryScopes, array<ModelTypeClass )
Returns all TSqlObject matching the list of typeFilters. Only top level ModelTypeClass types are supported by this method - all types in the typeFilters parameter must be present in the TopLevelTypes or the call will fail.
Espace de noms : Microsoft.SqlServer.Dac.Model
Assembly : Microsoft.SqlServer.Dac.Extensions (en Microsoft.SqlServer.Dac.Extensions.dll)
Syntaxe
'Déclaration
Public Function GetObjects ( _
queryScopes As DacQueryScopes, _
ParamArray typeFilters As ModelTypeClass() _
) As IEnumerable(Of TSqlObject)
'Utilisation
Dim instance As TSqlModel
Dim queryScopes As DacQueryScopes
Dim typeFilters As ModelTypeClass()
Dim returnValue As IEnumerable(Of TSqlObject)
returnValue = instance.GetObjects(queryScopes, _
typeFilters)
public IEnumerable<TSqlObject> GetObjects(
DacQueryScopes queryScopes,
params ModelTypeClass[] typeFilters
)
public:
IEnumerable<TSqlObject^>^ GetObjects(
DacQueryScopes queryScopes,
... array<ModelTypeClass^>^ typeFilters
)
member GetObjects :
queryScopes:DacQueryScopes *
typeFilters:ModelTypeClass[] -> IEnumerable<TSqlObject>
public function GetObjects(
queryScopes : DacQueryScopes,
... typeFilters : ModelTypeClass[]
) : IEnumerable<TSqlObject>
Paramètres
- queryScopes
Type : Microsoft.SqlServer.Dac.Model.DacQueryScopes
Scope filter for queried objects. Must be in the list of ModelTypeClass types returned from the TopLevelTypes method or the call will fail.
- typeFilters
Type : array<Microsoft.SqlServer.Dac.Model.ModelTypeClass[]
List of ModelTypeClass to return.
Valeur de retour
Type : System.Collections.Generic.IEnumerable<TSqlObject>
All TSqlObject that match typeFilters.
Exceptions
Exception | Condition |
---|---|
DacModelException | If any of the types in the typeFilters parameter are not a top level type. |
RemotingException | If communication with the TSqlObjectService fails. |
Notes
If no typeFilters are supplied all TSqlObject are returned.