Dela via


ObjectCacheManager.Get<T> Method (String, String, Func<ObjectCache, T>, Action<ObjectCache, T>, String)

 

Applies To: Dynamics CRM 2015

Namespace:   Microsoft.Xrm.Client.Caching
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static T Get<T>(
    string objectCacheName,
    string cacheKey,
    Func<ObjectCache, T> load,
    Action<ObjectCache, T> insert,
    string regionName = null
)
public:
generic<typename T>
static T Get(
    String^ objectCacheName,
    String^ cacheKey,
    Func<ObjectCache^, T>^ load,
    Action<ObjectCache^, T>^ insert,
    String^ regionName = null
)
static member Get<'T> : 
        objectCacheName:string *
        cacheKey:string *
        load:Func<ObjectCache, 'T> *
        insert:Action<ObjectCache, 'T> *
        regionName:string = null -> 'T
Public Shared Function Get(Of T) (
    objectCacheName As String,
    cacheKey As String,
    load As Func(Of ObjectCache, T),
    insert As Action(Of ObjectCache, T),
    regionName As String
) As T

Parameters

Return Value

Type: T

Type: {0}.

Type Parameters

  • T

See Also

Get Overload
ObjectCacheManager Class
Microsoft.Xrm.Client.Caching Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright