다음을 통해 공유


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.String

    The name of the subscription association.

  • expireAfter
    Type: System.TimeSpan

    Specifies how often the association is executed.

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

Other Resources

Stereotyped Operations Supported by BDC