AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IPortletRequest.GetCommunityID Method

Returns the ID of the Community in which the portlet is currently displayed.

int GetCommunityID();

#### Return Value

The Community ID.

#### Exceptions

Exception Type | Condition
--- | ---
NotGatewayedException | The request is not gatewayed.
NotInCommunityException | The portlet is not currently displayed on a Community page.

#### See Also

IPortletRequest Interface | Plumtree.Remote.Portlet Namespace