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.
命名空间: Microsoft.SqlServer.Dac.Model
程序集: Microsoft.SqlServer.Dac.Extensions(在 Microsoft.SqlServer.Dac.Extensions.dll 中)
语法
声明
Public Function GetObjects ( _
queryScopes As DacQueryScopes, _
ParamArray typeFilters As ModelTypeClass() _
) As IEnumerable(Of TSqlObject)
用法
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>
参数
- queryScopes
类型: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
类型:array<Microsoft.SqlServer.Dac.Model.ModelTypeClass[]
List of ModelTypeClass to return.
返回值
类型:System.Collections.Generic.IEnumerable<TSqlObject>
All TSqlObject that match typeFilters.
异常
异常 | 条件 |
---|---|
DacModelException | If any of the types in the typeFilters parameter are not a top level type. |
RemotingException | If communication with the TSqlObjectService fails. |
注释
If no typeFilters are supplied all TSqlObject are returned.