OrganizationServiceContextExtensions.AddPrivilegesRole Method (OrganizationServiceContext, Guid, Object)


Applies To: Dynamics CRM 2015

Adds a set of existing privileges to an existing role. (Developer Extensions)

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


public static void AddPrivilegesRole(
    this OrganizationServiceContext context,
    Guid roleId,
    object privileges
static void AddPrivilegesRole(
    OrganizationServiceContext^ context,
    Guid roleId,
    Object^ privileges
static member AddPrivilegesRole : 
        context:OrganizationServiceContext *
        roleId:Guid *
        privileges:Object -> unit
Public Shared Sub AddPrivilegesRole (
    context As OrganizationServiceContext,
    roleId As Guid,
    privileges As Object


  • privileges
    Type: System.Object

    The privileges to add to the role.


This is a method wrapper for the AddPrivilegesRoleRequest and AddPrivilegesRoleResponse classes. See the documentation in the Request class for more information about this message.

See Also

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

Return to top

© 2017 Microsoft. All rights reserved. Copyright