Примечание.
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
Returns TSqlObjects of the specified objectType and id. 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.
Пространство имен: Microsoft.SqlServer.Dac.Model
Сборка: Microsoft.SqlServer.Dac.Extensions (в Microsoft.SqlServer.Dac.Extensions.dll)
Синтаксис
'Декларация
Public Function GetObject ( _
objectType As ModelTypeClass, _
id As ObjectIdentifier, _
queryScopes As DacQueryScopes _
) As TSqlObject
'Применение
Dim instance As TSqlModel
Dim objectType As ModelTypeClass
Dim id As ObjectIdentifier
Dim queryScopes As DacQueryScopes
Dim returnValue As TSqlObject
returnValue = instance.GetObject(objectType, _
id, queryScopes)
public TSqlObject GetObject(
ModelTypeClass objectType,
ObjectIdentifier id,
DacQueryScopes queryScopes
)
public:
TSqlObject^ GetObject(
ModelTypeClass^ objectType,
ObjectIdentifier^ id,
DacQueryScopes queryScopes
)
member GetObject :
objectType:ModelTypeClass *
id:ObjectIdentifier *
queryScopes:DacQueryScopes -> TSqlObject
public function GetObject(
objectType : ModelTypeClass,
id : ObjectIdentifier,
queryScopes : DacQueryScopes
) : TSqlObject
Параметры
- objectType
Тип: 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
Тип: Microsoft.SqlServer.Dac.Model.ObjectIdentifier
Unique identity of TSqlObject to return.
- queryScopes
Тип: Microsoft.SqlServer.Dac.Model.DacQueryScopes
Scope filter for queried objects.
Возвращаемое значение
Тип: Microsoft.SqlServer.Dac.Model.TSqlObject
Single TSqlObject or null.
Исключения
| Исключение | Условие |
|---|---|
| DacModelException | If the supplied objectType and id result in multiple TSqlObjects, or 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. |