OrganizationServiceContextExtensions.TryRemoveFromCache Method (OrganizationServiceContext, String, Nullable<Guid>)
Applies To: Dynamics CRM 2013
Removes an entity from cache if it is applicable to the context.
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static bool TryRemoveFromCache(
this OrganizationServiceContext context,
string entityLogicalName,
Nullable<Guid> id
)
public:
[ExtensionAttribute]
static bool TryRemoveFromCache(
OrganizationServiceContext^ context,
String^ entityLogicalName,
Nullable<Guid> id
)
static member TryRemoveFromCache :
context:OrganizationServiceContext *
entityLogicalName:string *
id:Nullable<Guid> -> bool
<ExtensionAttribute>
Public Shared Function TryRemoveFromCache (
context As OrganizationServiceContext,
entityLogicalName As String,
id As Nullable(Of Guid)
) As Boolean
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextType: OrganizationServiceContext. The service context.
entityLogicalName
Type: System.StringType: String. The logical name of the entity.
id
Type: System.Nullable<Guid>
Return Value
Type: System.Boolean
Type: Boolean
.
See Also
TryRemoveFromCache Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace
Return to top