RolePrivilege Class
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Contains information about a privilege.
For the Web API the corresponding type is RolePrivilege ComplexType.
Namespace: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)
Inheritance Hierarchy
System.Object
Microsoft.Crm.Sdk.Messages.RolePrivilege
Syntax
[DataContractAttribute(Namespace = "https://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class RolePrivilege : IExtensibleDataObject
<DataContractAttribute(Namespace := "https://schemas.microsoft.com/crm/2011/Contracts")>
Public NotInheritable Class RolePrivilege
Implements IExtensibleDataObject
Constructors
Name | Description | |
---|---|---|
RolePrivilege() | Initializes a new instance of the RolePrivilege class. |
|
RolePrivilege(Int32, Guid) | Initializes a new instance of the RolePrivilege class by setting the depth and the privilege ID. |
|
RolePrivilege(Int32, Guid, Guid) | Initializes a new instance of the RolePrivilege class by setting the depth (as an integer), the privilege ID, and the business unit ID. |
|
RolePrivilege(PrivilegeDepth, Guid, Guid) | Initializes a new instance of the RolePrivilege class by setting the depth, privilege ID, and business unit ID. |
Properties
Name | Description | |
---|---|---|
BusinessUnitId | Gets or sets the ID of the business unit. |
|
Depth | Gets or sets the depth of the privilege. |
|
ExtensionData | Gets or sets the structure that contains extra data. |
|
PrivilegeId | Gets or sets the ID of the privilege. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
AddPrivilegesRoleRequest
ReplacePrivilegesRoleRequest
Microsoft.Crm.Sdk.Messages Namespace
How role-based security can be used to control access to entities in Microsoft Dynamics 365
Privilege and role entities
Sample: Assign a record to a team
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright