Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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).