Метод ISfcCollection.GetObjectByKey
Uses the specified key to retrieve an object from the collection. If a matching object is not found in the collection, the object is created in the collection.Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server.
Пространство имен: Microsoft.SqlServer.Management.Sdk.Sfc
Сборка: Microsoft.SqlServer.Management.Sdk.Sfc (в Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Синтаксис
'Декларация
Function GetObjectByKey ( _
key As SfcKey _
) As SfcInstance
'Применение
Dim instance As ISfcCollection
Dim key As SfcKey
Dim returnValue As SfcInstance
returnValue = instance.GetObjectByKey(key)
SfcInstance GetObjectByKey(
SfcKey key
)
SfcInstance^ GetObjectByKey(
SfcKey^ key
)
abstract GetObjectByKey :
key:SfcKey -> SfcInstance
function GetObjectByKey(
key : SfcKey
) : SfcInstance
Параметры
- key
Тип: Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
The key that identifies the object to get.
Возвращаемое значение
Тип: Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
An SfcInstance object that represents the object from the collection.