Share via


CrmEntitySecurityProvider.TryAssert Method (OrganizationServiceContext, IEnumerable<Entity>, CrmEntityRight)

 

Applies To: Dynamics CRM 2015

Asserts that the current user has the requested right to a set of entities.

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

Syntax

public virtual bool TryAssert(
    OrganizationServiceContext context,
    IEnumerable<Entity> entities,
    CrmEntityRight right
)
public:
virtual bool TryAssert(
    OrganizationServiceContext^ context,
    IEnumerable<Entity^>^ entities,
    CrmEntityRight right
)
abstract TryAssert : 
        context:OrganizationServiceContext *
        entities:IEnumerable<Entity> *
        right:CrmEntityRight -> bool
override TryAssert : 
        context:OrganizationServiceContext *
        entities:IEnumerable<Entity> *
        right:CrmEntityRight -> bool
Public Overridable Function TryAssert (
    context As OrganizationServiceContext,
    entities As IEnumerable(Of Entity),
    right As CrmEntityRight
) As Boolean

Parameters

Return Value

Type: System.Boolean

Type: Boolean
true if the current user has the requested right to the entities in the collection; otherwise false.

Implements

ICrmEntitySecurityProvider.TryAssert(OrganizationServiceContext, IEnumerable<Entity>, CrmEntityRight)

See Also

TryAssert Overload
CrmEntitySecurityProvider Class
Microsoft.Xrm.Client.Security Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright