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
name
Type: System.StringThe name of the subscription query.
methodInstance
Type: Microsoft.BusinessData.MetadataModel.IMethodInstanceThe MethodInstance. The external content type of the MethodInstance should match the external content type of the subscription.
expireAfter
Type: System.TimeSpanSpecifies how often to refresh the subscription query.
properties
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, Object>>The key/value property collection.
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