共用方式為


SPUtility.GetMasterPageOverride method

如果有的話,取得目前 HttpRequest 主版頁面覆寫 URL。如果未指定其中一個項目,則會傳回 null。

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

Syntax

'宣告
Public Shared Function GetMasterPageOverride ( _
    context As HttpContext _
) As String
'用途
Dim context As HttpContext
Dim returnValue As String

returnValue = SPUtility.GetMasterPageOverride(context)
public static string GetMasterPageOverride(
    HttpContext context
)

參數

傳回值

Type: System.String
如果指定主版頁面會覆寫的 URL。否則為 null

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace