AttributePrivilege Class
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Specifies the field level security privileges allowed for an attribute.
For the Web API the corresponding type is AttributePrivilege ComplexType.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Sdk.AttributePrivilege
Syntax
[SerializableAttribute]
[DataContractAttribute(Name = "AttributePrivilege", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class AttributePrivilege : IExtensibleDataObject
<SerializableAttribute>
<DataContractAttribute(Name := "AttributePrivilege", Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
Public NotInheritable Class AttributePrivilege
Implements IExtensibleDataObject
Constructors
Name | Description | |
---|---|---|
AttributePrivilege() | Initializes a new instance of theAttributePrivilege class. |
|
AttributePrivilege(Guid, Int32, Int32, Int32) | Initializes a new instance of the AttributePrivilege class setting the attribute Id, and whether it is valid to create, read and update the attribute value. |
Properties
Name | Description | |
---|---|---|
AttributeId | Gets the ID of the attribute. |
|
CanCreate | Gets whether create of the attribute value is allowed. |
|
CanRead | Gets whether read of the attribute value is allowed. |
|
CanUpdate | Gets whether update of the attribute value is allowed. |
|
ExtensionData | Gets or sets the structure that contains extra data. |
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
AttributePrivilegeCollection
RetrievePrincipalAttributePrivilegesResponse
Microsoft.Xrm.Sdk Namespace
How field security can be used to control access to field values in Microsoft Dynamics 365
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright