Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IPortletRequest.GetPortletMode Method

Returns a `PortletMode` object to tell the client what mode the Portlet is running in.

PortletMode GetPortletMode();

#### Return Value

PortletMode instance, null if not found in request.

#### Remarks

The Portlet mode indicates whether the Portlet should display standard content or a summary for small-screened mobile devices. The mode also indicates if the Portlet is syndicated (running asynchronously).

#### Exceptions

Exception Type | Condition
--- | ---
NotGatewayedException | if the request is not gatewayed

#### See Also

IPortletRequest Interface | Plumtree.Remote.Portlet Namespace