CrmEntitySecurityProvider.TryAssert Method (OrganizationServiceContext, Entity, CrmEntityRight)
Applies To: Dynamics CRM 2013
Asserts that the current user has the requested right to an entity.
Namespace: Microsoft.Xrm.Client.Security
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public abstract bool TryAssert(
OrganizationServiceContext context,
Entity entity,
CrmEntityRight right
)
public:
virtual bool TryAssert(
OrganizationServiceContext^ context,
Entity^ entity,
CrmEntityRight right
) abstract
abstract TryAssert :
context:OrganizationServiceContext *
entity:Entity *
right:CrmEntityRight -> bool
Public MustOverride Function TryAssert (
context As OrganizationServiceContext,
entity As Entity,
right As CrmEntityRight
) As Boolean
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextType: OrganizationServiceContext. The context.
entity
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The entity instance.
right
Type: Microsoft.Xrm.Client.Security.CrmEntityRightType: CrmEntityRight. The rights to look for.
Return Value
Type: System.Boolean
Type: Boolean
true if the current user has the requested right to the entity; otherwise false.
Implements
ICrmEntitySecurityProvider.TryAssert(OrganizationServiceContext, Entity, CrmEntityRight)
See Also
TryAssert Overload
CrmEntitySecurityProvider Class
Microsoft.Xrm.Client.Security Namespace
Return to top