Share via


RoleDefinition.Name Property

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

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 Name As String
    Get
    Set
'Usage
Dim instance As RoleDefinition
Dim value As String

value = instance.Name

instance.Name = value
[RemoteAttribute]
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