Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IPortletResponse.SetHostedDisplayMode Method

Tells the portal how the page should be displayed (with or without a banner).

void SetHostedDisplayMode(
HostedDisplayMode mode
);

#### Parameters

mode
  the requested display mode

#### Remarks

This method is used for pages associated with a Portlet (i.e., Preference pages). Note: This method can only be called once per page.

#### Exceptions

Exception Type | Condition
--- | ---
NotGatewayedException | if the request is not gatewayed
ProtocolNotSupportedException | if used with a version of the portal that does not support this feature
InvalidOperationException | if the method is called more than once per page

#### See Also

IPortletResponse Interface | Plumtree.Remote.Portlet Namespace