Export (0) Print
Expand All

SfcCollection(Of T, K, ParentT).ISfcCollection.GetObjectByKey Method

Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

'Declaration
Private Function GetObjectByKey ( _
	key As SfcKey _
) As SfcInstance Implements ISfcCollection.GetObjectByKey
'Usage
Dim instance As SfcCollection 
Dim key As SfcKey 
Dim returnValue As SfcInstance 

returnValue = CType(instance, ISfcCollection).GetObjectByKey(key)

Parameters

key
Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
The key that identifies the object to get.

Return Value

Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
The object from the collection.

Implements

ISfcCollection.GetObjectByKey(SfcKey)

Community Additions

ADD
Show:
© 2014 Microsoft