Share via


ICustomProvider.GetStoreUtcTime Method

Obtains the current UTC time based on the clock for the configuration store.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Core (in microsoft.applicationserver.caching.core.dll)

Usage

'Usage
Dim instance As ICustomProvider
Dim transactionContext As Object
Dim returnValue As DateTime

returnValue = instance.GetStoreUtcTime(transactionContext)

Syntax

'Declaration
Function GetStoreUtcTime ( _
    transactionContext As Object _
) As DateTime
DateTime GetStoreUtcTime (
    Object transactionContext
)
DateTime GetStoreUtcTime (
    Object^ transactionContext
)
DateTime GetStoreUtcTime (
    Object transactionContext
)
function GetStoreUtcTime (
    transactionContext : Object
) : DateTime

Parameters

  • transactionContext
    The transaction context object.

Return Value

Returns DateTime.

Remarks

If the configuration store is shared by multiple clients at different locations, every client must obtain the same time as it exists on the configuration store machine.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

ICustomProvider Interface
ICustomProvider Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26