Condividi tramite


SPRoleDefinition.Name Property

Gets or sets the name of the role definition.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull, Sequence := )> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.MaxLength, Value := , Sequence := )> _
<ClientCallableConstraintAttribute(FixedId := "InvalidChars", Type := ClientCallableConstraintType.Custom,  _
    Value := "MUST not contain any of the following characters: /\[]:|<>+=;,?*'"@",  _
    Sequence := )> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotEmpty, Sequence := )> _
Public Property Name As String
    Get
    Set
'Usage
Dim instance As SPRoleDefinition
Dim value As String

value = instance.Name

instance.Name = value
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull, Sequence = )]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.MaxLength, Value = , Sequence = )]
[ClientCallableConstraintAttribute(FixedId = "InvalidChars", Type = ClientCallableConstraintType.Custom, 
    Value = "MUST not contain any of the following characters: /\[]:|<>+=;,?*'"@", 
    Sequence = )]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotEmpty, Sequence = )]
public string Name { get; set; }

Property Value

Type: System.String
A string containing the name that is limited to 255 characters.

See Also

Reference

SPRoleDefinition Class

SPRoleDefinition Members

Microsoft.SharePoint Namespace