SPUtility.GetMasterPageOverride method

If applicable, gets the master page override URL on the current HttpRequest. If one is not specified, return null.

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

Syntax

'Declaration
Public Shared Function GetMasterPageOverride ( _
    context As HttpContext _
) As String
'Usage
Dim context As HttpContext
Dim returnValue As String

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

Parameters

Return value

Type: System.String
The master page override URL, if specified. Otherwise, null

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace