Compartilhar via


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

 

Applies To: Dynamics CRM 2013

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

Syntax

public virtual T Get<T>(
    ObjectCache cache,
    string cacheKey,
    Func<ObjectCache, T> load,
    Action<ObjectCache, T> insert,
    string regionName = null
)
public:
generic<typename T>
virtual T Get(
    ObjectCache^ cache,
    String^ cacheKey,
    Func<ObjectCache^, T>^ load,
    Action<ObjectCache^, T>^ insert,
    String^ regionName = null
)
abstract Get<'T> : 
        cache:ObjectCache *
        cacheKey:string *
        load:Func<ObjectCache, 'T> *
        insert:Action<ObjectCache, 'T> *
        regionName:string = null -> 'T
override Get<'T> : 
        cache:ObjectCache *
        cacheKey:string *
        load:Func<ObjectCache, 'T> *
        insert:Action<ObjectCache, 'T> *
        regionName:string = null -> 'T
Public Overridable Function Get(Of T) (
    cache As ObjectCache,
    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

ObjectCacheProvider Class
Microsoft.Xrm.Client.Caching Namespace
Developer extensions for Microsoft Dynamics CRM 2013

Return to top