ISubscriptionAssociationCollection.Create Method
Creates a subscription association in the subscription association collection.
Namespace: Microsoft.BusinessData.Offlining
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function Create ( _
name As String, _
methodInstance As IMethodInstance, _
lobSystemInstance As ILobSystemInstance, _
expireAfter As TimeSpan, _
destinationSubscription As ISubscription, _
targetView As IView, _
properties As IEnumerable(Of KeyValuePair(Of String, Object)) _
) As ISubscriptionAssociation
'Usage
Dim instance As ISubscriptionAssociationCollection
Dim name As String
Dim methodInstance As IMethodInstance
Dim lobSystemInstance As ILobSystemInstance
Dim expireAfter As TimeSpan
Dim destinationSubscription As ISubscription
Dim targetView As IView
Dim properties As IEnumerable(Of KeyValuePair(Of String, Object))
Dim returnValue As ISubscriptionAssociation
returnValue = instance.Create(name, methodInstance, _
lobSystemInstance, expireAfter, _
destinationSubscription, targetView, _
properties)
ISubscriptionAssociation Create(
string name,
IMethodInstance methodInstance,
ILobSystemInstance lobSystemInstance,
TimeSpan expireAfter,
ISubscription destinationSubscription,
IView targetView,
IEnumerable<KeyValuePair<string, Object>> properties
)
Parameters
name
Type: System.StringThe name of the subscription association.
methodInstance
Type: Microsoft.BusinessData.MetadataModel.IMethodInstanceThe excuted Association MethodInstance.
lobSystemInstance
Type: Microsoft.BusinessData.MetadataModel.ILobSystemInstanceThe external system instance where the Association is executed.
expireAfter
Type: System.TimeSpanSpecifies how often the association is executed.
destinationSubscription
Type: Microsoft.BusinessData.Offlining.ISubscriptionThe subscription that will be populated with the associated destination external items.
targetView
Type: Microsoft.BusinessData.MetadataModel.IViewThe SpecificFinder view on the destination external content type that will be populated by the association.
properties
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, Object>>The key/value pair of properties.
Return Value
Type: Microsoft.BusinessData.Offlining.ISubscriptionAssociation
The new subscription association.
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.
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.
See Also
Reference
ISubscriptionAssociationCollection Interface
ISubscriptionAssociationCollection Members
Microsoft.BusinessData.Offlining Namespace