Partilhar via


OperationMode Constructor (CacheUsage, TimeSpan)

Creates a new operation mode with specified cache usage and freshness criterion.

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

Syntax

'Declaration
Public Sub New ( _
    cacheUsage As CacheUsage, _
    freshness As TimeSpan _
)
'Usage
Dim cacheUsage As CacheUsage
Dim freshness As TimeSpan

Dim instance As New OperationMode(cacheUsage, _
    freshness)
public OperationMode(
    CacheUsage cacheUsage,
    TimeSpan freshness
)

Parameters

  • freshness
    Type: System.TimeSpan

    The attempted freshness. This value is ignored if CacheUsage is set to Online.

Remarks

When in Cached mode, if the data in the cache is older than the required freshness, then an external system instance method instance is called; otherwise, the information is retrieved from the cache.

See Also

Reference

OperationMode Class

OperationMode Members

OperationMode Overload

Microsoft.BusinessData.Runtime Namespace