ISubscriptionManager.GetSubscription Method (IView, String)
Gets a single cache subscription given the view and the subscription name.
Namespace: Microsoft.BusinessData.Offlining
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function GetSubscription ( _
view As IView, _
subscriptionName As String _
) As ISubscription
'Usage
Dim instance As ISubscriptionManager
Dim view As IView
Dim subscriptionName As String
Dim returnValue As ISubscription
returnValue = instance.GetSubscription(view, _
subscriptionName)
ISubscription GetSubscription(
IView view,
string subscriptionName
)
Parameters
view
Type: Microsoft.BusinessData.MetadataModel.IViewThe view of the subscription.
subscriptionName
Type: System.StringThe subscription programmatic name.
Return Value
Type: Microsoft.BusinessData.Offlining.ISubscription
The subscription.
Remarks
Instances of objects in the Business Data Connectivity object model are tied to the Metadata Store they are obtained from. Using instances tied to one Metadata Store with the instances from another Metadata Store will cause data corruption and other unexpected behavior. For more information, see DatabaseBackedMetadataCatalog, FileBackedMetadataCatalog, and RemoteSharedFileBackedMetadataCatalog.