共用方式為


SPView.Url property

取得網站相對的 URL,包含檢視的頁面。

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

Syntax

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

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

Property value

Type: System.String
字串,包含網站相對 URL。

請參閱

參照

SPView class

SPView members

Microsoft.SharePoint namespace