다음을 통해 공유


RoleDefinition.BasePermissions Property

Gets or sets a value that specifies the base permissions for the role definition.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property BasePermissions As BasePermissions
    Get
    Set
'Usage
Dim instance As RoleDefinition
Dim value As BasePermissions

value = instance.BasePermissions

instance.BasePermissions = value
[RemoteAttribute]
public BasePermissions BasePermissions { get; set; }

Property Value

Type: Microsoft.SharePoint.Client.BasePermissions
Returns a BasePermissions instance representing the base permissions for the role definition.

Exceptions

Exception Condition
[System.InvalidOperationException]

Site inherits permission levels from a parent site, and permission levels cannot be customized. Error code: -1.

Remarks

When assigning values to the property, use bitwise AND, OR, and XOR operators with values from the BasePermissions enumeration.

It must not be a null reference (Nothing in Visual Basic).

See Also

Reference

RoleDefinition Class

RoleDefinition Members

Microsoft.SharePoint.Client Namespace