다음을 통해 공유


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.

네임스페이스:  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>

매개 변수

반환 값

유형: 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.

참고 항목

참조

TSqlModel 클래스

GetObjects 오버로드

Microsoft.SqlServer.Dac.Model 네임스페이스