SPListItem.Name property
取得項目的名稱。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property Name As String
Get
Friend Set
'用途
Dim instance As SPListItem
Dim value As String
value = instance.Name
public string Name { get; internal set; }
Property value
Type: System.String
包含的項目名稱,其中的文件庫項目,等於包含副檔名之檔案名稱的字串。
備註
不支援設定清單項目的名稱。
注意事項 |
---|
可考慮改用DisplayName屬性,這會傳回清單項目作業通常是必要的名稱。 |