共用方式為


SPFile.Url property

取得檔案的站台相對 URL。

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

Syntax

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

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

Property value

Type: System.String
字串,包含 URL。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace