共用方式為


SPFile.Name property

取得包含副檔名的檔案名稱。

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

Syntax

'宣告
Public ReadOnly Property Name As String
    Get
'用途
Dim instance As SPFile
Dim value As String

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

Property value

Type: System.String
字串,包含檔案名稱,包括副檔名。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace