Partilhar via


Método 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.

Namespace:  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (em Microsoft.SqlServer.Dac.Extensions.dll)

Sintaxe

'Declaração
Public Function GetObjects ( _
    queryScopes As DacQueryScopes, _
    ParamArray typeFilters As ModelTypeClass() _
) As IEnumerable(Of TSqlObject)
'Uso
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>

Parâmetros

Valor de retorno

Tipo: System.Collections.Generic.IEnumerable<TSqlObject>
All TSqlObject that match typeFilters.

Exceções

Exceção Condição
DacModelException

If any of the types in the typeFilters parameter are not a top level type.

RemotingException

If communication with the TSqlObjectService fails.

Comentários

If no typeFilters are supplied all TSqlObject are returned.

Consulte também

Referência

TSqlModel Classe

Sobrecarregado GetObjects

Namespace Microsoft.SqlServer.Dac.Model