Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Dynamics CRM 2013
Namespace:   Microsoft.Xrm.Client.Caching
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static T Get<T>(
    this ObjectCache cache,
    string cacheKey,
    Func<ObjectCache, T> load,
    Action<ObjectCache, T> insert,
    string regionName = null
)
public:
generic<typename T>
[ExtensionAttribute]
static T Get(
    ObjectCache^ cache,
    String^ cacheKey,
    Func<ObjectCache^, T>^ load,
    Action<ObjectCache^, T>^ insert,
    String^ regionName = null
)
static member Get<'T> : 
        cache:ObjectCache *
        cacheKey:string *
        load:Func<ObjectCache, 'T> *
        insert:Action<ObjectCache, 'T> *
        regionName:string = null -> 'T
<ExtensionAttribute>
Public Shared 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
- cache
 Type: System.Runtime.Caching.ObjectCache
- cacheKey
 Type: System.String
- load
 Type: System.Func<ObjectCache, T>
- insert
 Type: System.Action<ObjectCache, T>
- regionName
 Type: System.String
Return Value
Type: T
Type: {0}.
Type Parameters
- T
See Also
Get Overload
ObjectCacheManager Class
Microsoft.Xrm.Client.Caching Namespace
Return to top