SPWebPartManager.GetDisplayMode Method

Returns the display mode for a webpage that contains Web Part controls.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function GetDisplayMode As WebPartDisplayMode
'Usage
Dim instance As SPWebPartManager
Dim returnValue As WebPartDisplayMode

returnValue = instance.GetDisplayMode()
public WebPartDisplayMode GetDisplayMode()

Return Value

Type: System.Web.UI.WebControls.WebParts.WebPartDisplayMode
The display mode of the Web Parts page.

Exceptions

Exception Condition
ArgumentException

Cannot define the settings for the View property of the ToolPane class.

Remarks

The default is a null reference (Nothing in Visual Basic).

See Also

Reference

SPWebPartManager Class

SPWebPartManager Members

Microsoft.SharePoint.WebPartPages Namespace

BrowseDisplayMode