Share via


AttributePrivilege Constructor (Guid, Int32, Int32, Int32)

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

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.

Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

'Declaration
Public Sub New ( _
    attributeId As Guid, _
    canCreate As Integer, _
    canRead As Integer, _
    canUpdate As Integer _
)
public AttributePrivilege (
    Guid attributeId,
    int canCreate,
    int canRead,
    int canUpdate
)

Parameters

  • attributeId
    Type: Guid. The attribute ID.
  • canCreate
    Type: Int32. Whether the attribute value can be specified on create.
  • canRead
    Type: Int32. Whether the attribute value can be read.
  • canUpdate
    Type: Int32. Whether the attribute value can be updated.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

See Also

Reference

AttributePrivilege Class
AttributePrivilege Members
Microsoft.Xrm.Sdk Namespace

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.