Share via


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
System_CAPS_pubmethod AttributePrivilege()

Initializes a new instance of theAttributePrivilege class.

System_CAPS_pubmethod 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
System_CAPS_pubproperty AttributeId

Gets the ID of the attribute.

System_CAPS_pubproperty CanCreate

Gets whether create of the attribute value is allowed.

System_CAPS_pubproperty CanRead

Gets whether read of the attribute value is allowed.

System_CAPS_pubproperty CanUpdate

Gets whether update of the attribute value is allowed.

System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod 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