共用方式為


SPWebInfo.MasterUrl property

網站主版頁面的 URL。

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

Syntax

'宣告
Public ReadOnly Property MasterUrl As String
    Get
'用途
Dim instance As SPWebInfo
Dim value As String

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

Property value

Type: System.String
Web 網站主機 URL String表示。

請參閱

參照

SPWebInfo class

SPWebInfo members

Microsoft.SharePoint namespace