共用方式為


SPContentType.Name property

取得或設定內容的型別名稱。

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

Syntax

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

value = instance.Name

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

Property value

Type: System.String
內容型別名稱。

備註

設定這個屬性的值之前,您應該使用ValidateName(String)方法來判斷是否建議的名稱是有效的。

Name屬性所傳回的值可以當地語系化,它會變更與目前執行緒的CurrentUICulture屬性的值。如需詳細資訊,請參閱DescriptionResource屬性。

請參閱

參照

SPContentType class

SPContentType members

Microsoft.SharePoint namespace

NameResource