Condividi tramite


SPPrincipal.Name Property

Gets or sets the name of the principal.

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

Syntax

'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.MaxLength, Value := )> _
<ClientCallableAttribute(Name := "Title")> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
Public MustOverride Property Name As String
    Get
    Set
'Usage
Dim instance As SPPrincipal
Dim value As String

value = instance.Name

instance.Name = value
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.MaxLength, Value = )]
[ClientCallableAttribute(Name = "Title")]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public abstract string Name { get; set; }

Property Value

Type: System.String
A string that contains the name of the principal.

See Also

Reference

SPPrincipal Class

SPPrincipal Members

Microsoft.SharePoint Namespace