共用方式為


CacheUsage Enumeration

Represents an enumeration that specifies whether offline data cache should be used for an operation or not.

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

Syntax

'Declaration
Public Enumeration CacheUsage
'Usage
Dim instance As CacheUsage
public enum CacheUsage

Members

Member name Description
Default Specifies the default target for operations. The default target is different based on the context and the external content type the operation is working with.
Online Specifies the external system as the target of operations. All operations are executed directly against the external system. The data in the offline data cache will not be updated and will be ignored when External Items are requested.
Cached Specifies offline data cache to be the target of operations. When a single External Item is requested, operations will attempt to get fresh data directly from the external system if the data in the offline data cache is not present or is stale; otherwise these operations will return data directly from the offline data cache. When multiple External Items are requested, operations will only return data from the offline cache, even if the information in the cache is stale or is not present. When External Items are updated, created, or deleted, the operation will be queued to be executed against the external system.

123123123

Offline Specifies the offline data cache as the target of operations. All External Item requests will return only items from the offline data cache. When an External Item is created, updated, or deleted the operation will be queued to be executed against the external system.

Remarks

This enumeration is used within an operation mode to identify the usage pattern for the offline data cache. If the offline data cache is not present or not usable with the metadata catalog that provides the metadata for the operation, this value will be ignored.

See Also

Reference

Microsoft.BusinessData.Runtime Namespace

OperationMode