共用方式為


SPPrincipal.Name property

取得或設定主體的名稱。

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

Syntax

'宣告
Public MustOverride Property Name As String
    Get
    Set
'用途
Dim instance As SPPrincipal
Dim value As String

value = instance.Name

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

Property value

Type: System.String
字串,包含主體的名稱。

請參閱

參照

SPPrincipal class

SPPrincipal members

Microsoft.SharePoint namespace