Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Returns all TSqlObject that match the ModelTypeClass and ObjectIdentifier. Only top level ModelTypeClass types are supported by this method - the objectType parameter must be in the types returned from the TopLevelTypes method 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 ( _
objectType As ModelTypeClass, _
id As ObjectIdentifier, _
queryScopes As DacQueryScopes _
) As IEnumerable(Of TSqlObject)
'Usage
Dim instance As TSqlModel
Dim objectType As ModelTypeClass
Dim id As ObjectIdentifier
Dim queryScopes As DacQueryScopes
Dim returnValue As IEnumerable(Of TSqlObject)
returnValue = instance.GetObjects(objectType, _
id, queryScopes)
public IEnumerable<TSqlObject> GetObjects(
ModelTypeClass objectType,
ObjectIdentifier id,
DacQueryScopes queryScopes
)
public:
IEnumerable<TSqlObject^>^ GetObjects(
ModelTypeClass^ objectType,
ObjectIdentifier^ id,
DacQueryScopes queryScopes
)
member GetObjects :
objectType:ModelTypeClass *
id:ObjectIdentifier *
queryScopes:DacQueryScopes -> IEnumerable<TSqlObject>
public function GetObjects(
objectType : ModelTypeClass,
id : ObjectIdentifier,
queryScopes : DacQueryScopes
) : IEnumerable<TSqlObject>
Parameter
- objectType
Typ: Microsoft.SqlServer.Dac.Model.ModelTypeClass
Type Filter. Must be in the list of ModelTypeClass types returned from the TopLevelTypes method or the call will fail.
- id
Typ: Microsoft.SqlServer.Dac.Model.ObjectIdentifier
Identity of the TSqlObject to return.
- queryScopes
Typ: Microsoft.SqlServer.Dac.Model.DacQueryScopes
Scope filter for queried objects.
Rückgabewert
Typ: System.Collections.Generic.IEnumerable<TSqlObject>
All TSqlObject that match the objectType and id.
Ausnahmen
| Ausnahme | Bedingung |
|---|---|
| DacModelException | If the objectType is not a top level type. |
| ArgumentNullException | If the supplied id is null. |
| ArgumentNullException | If the supplied objectType is null. |
| RemotingException | If communication with the TSqlObjectService fails. |