OrganizationServiceContextExtensions.AddPrivilegesRole Method (OrganizationServiceContext, Guid, Object)
Applies To: Dynamics CRM 2013
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)
Syntax
public static void AddPrivilegesRole(
this OrganizationServiceContext context,
Guid roleId,
object privileges
)
public:
[ExtensionAttribute]
static void AddPrivilegesRole(
OrganizationServiceContext^ context,
Guid roleId,
Object^ privileges
)
static member AddPrivilegesRole :
context:OrganizationServiceContext *
roleId:Guid *
privileges:Object -> unit
<ExtensionAttribute>
Public Shared Sub AddPrivilegesRole (
context As OrganizationServiceContext,
roleId As Guid,
privileges As Object
)
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
roleId
Type: System.GuidThe ID of the role.
privileges
Type: System.ObjectThe privileges to add to the role.
Remarks
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 2013
Return to top