다음을 통해 공유


ISubscriptionQueryCollection.Create Method

Creates a subscription query in the subscription query collection.

Namespace:  Microsoft.BusinessData.Offlining
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Function Create ( _
    name As String, _
    methodInstance As IMethodInstance, _
    expireAfter As TimeSpan, _
    properties As IEnumerable(Of KeyValuePair(Of String, Object)) _
) As ISubscriptionQuery
'Usage
Dim instance As ISubscriptionQueryCollection
Dim name As String
Dim methodInstance As IMethodInstance
Dim expireAfter As TimeSpan
Dim properties As IEnumerable(Of KeyValuePair(Of String, Object))
Dim returnValue As ISubscriptionQuery

returnValue = instance.Create(name, methodInstance, _
    expireAfter, properties)
ISubscriptionQuery Create(
    string name,
    IMethodInstance methodInstance,
    TimeSpan expireAfter,
    IEnumerable<KeyValuePair<string, Object>> properties
)

Parameters

  • expireAfter
    Type: System.TimeSpan

    Specifies how often to refresh the subscription query.

Return Value

Type: Microsoft.BusinessData.Offlining.ISubscriptionQuery
The new subscription query.

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.

See Also

Reference

ISubscriptionQueryCollection Interface

ISubscriptionQueryCollection Members

Microsoft.BusinessData.Offlining Namespace