Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Namespace: Microsoft.SqlServer.Dac.Model
Assembly: Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)
Syntax
'Declaration
Public Function GetObjects ( _
queryScopes As DacQueryScopes, _
ParamArray typeFilters As ModelTypeClass() _
) As IEnumerable(Of TSqlObject)
'Usage
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>
Parameters
- 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.
Return Value
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. |
Remarks
If no typeFilters are supplied all TSqlObject are returned.