OrganizationServiceContextExtensions.ReplacePrivilegesRole Method (OrganizationServiceContext, Guid, Object)

 

Applies To: Dynamics CRM 2013

Replaces the privilege set of an existing role. This effectively deletes all existing privileges from the role and adds the new specified privileges. (Developer Extensions)

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

Syntax

public static void ReplacePrivilegesRole(
    this OrganizationServiceContext context,
    Guid roleId,
    object privileges
)
public:
[ExtensionAttribute]
static void ReplacePrivilegesRole(
    OrganizationServiceContext^ context,
    Guid roleId,
    Object^ privileges
)
static member ReplacePrivilegesRole : 
        context:OrganizationServiceContext *
        roleId:Guid *
        privileges:Object -> unit
<ExtensionAttribute>
Public Shared Sub ReplacePrivilegesRole (
    context As OrganizationServiceContext,
    roleId As Guid,
    privileges As Object
)

Parameters

Remarks

This is a method wrapper for the ReplacePrivilegesRoleRequest and ReplacePrivilegesRoleResponse 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 2013

Return to top