OrganizationServiceContextExtensions.TryAccessCache Method (OrganizationServiceContext, Action<IOrganizationServiceCache>)

 

Applies To: Dynamics CRM 2015

Tries to perform an action on the underlying IOrganizationServiceCache if applicable.

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

Syntax

public static bool TryAccessCache(
    this OrganizationServiceContext context,
    Action<IOrganizationServiceCache> action
)
public:
[ExtensionAttribute]
static bool TryAccessCache(
    OrganizationServiceContext^ context,
    Action<IOrganizationServiceCache^>^ action
)
static member TryAccessCache : 
        context:OrganizationServiceContext *
        action:Action<IOrganizationServiceCache> -> bool
<ExtensionAttribute>
Public Shared Function TryAccessCache (
    context As OrganizationServiceContext,
    action As Action(Of IOrganizationServiceCache)
) As Boolean

Parameters

Return Value

Type: System.Boolean

Type: Boolean
.

See Also

IOrganizationServiceCache
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright