Share via


RoleDefinition.Name property

Gets or sets a value that specifies the role definition name.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Property Name As String
    Get
    Set
'Usage
Dim instance As RoleDefinition
Dim value As String

value = instance.Name

instance.Name = value
public string Name { get; set; }

Property value

Type: System.String
Returns a String instance representing the role definition name.

Exceptions

Exception Condition
[System.InvalidOperationException]

Role definition is inherited from a parent site. Error code: -1.

Remarks

It must not be a null reference (Nothing in Visual Basic). It must not be empty. Its length must be equal to or less than 255. Must not contain any of the following characters: /\[]:|<>+=;,?*'"@

See also

Reference

RoleDefinition class

RoleDefinition members

Microsoft.SharePoint.Client namespace