CrmEntitySecurityProvider.TryAssert Kaedah (OrganizationServiceContext, IEnumerable, CrmEntityRight)

Applies To: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

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

Ruang nama: Microsoft.Xrm.Client.Security
Perhimpunan: Microsoft.Xrm.Client (dalam Microsoft.Xrm.Client.dll)

Dim instance As CrmEntitySecurityProvider
Dim context As OrganizationServiceContext
Dim entities As IEnumerable(Of Entity)
Dim right As CrmEntityRight
Dim returnValue As Boolean

returnValue = instance.TryAssert(context, entities, right)

public virtual bool TryAssert (
	OrganizationServiceContext context,
	IEnumerable<Entity> entities,
	CrmEntityRight right



Type: OrganizationServiceContext. The context.


Type: IEnumerable<Entity>. The collection of entities.


Type: CrmEntityRight. The rights to look for.

Nilai Pulangan

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

Sebarang ahli statik awam (Shared dalam Visual Basic) jenis ini adalah selamat rentetan. Dalam apa jua keadaan, ahli tidak dijamin selamat rentetan.

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.