Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IPortletManager.GetPortletInstance Method

Returns an `IPortlet` object that represents an existing Portlet instance.

IPortlet GetPortletInstance(
int portletID
);

#### Parameters

portletID
  The ID of the Portlet to be returned

#### Return Value

the `IPortlet` instance being queried

#### Remarks

Any changes made to the Portlet instance will not take effect in the portal until the `IPortlet.Save()` method is called.

#### Exceptions

Exception Type | Condition
--- | ---
NoSuchObjectException | if there is no Portlet with the specified ID
HttpException | if the query interface URL is not valid
PortalException | if the operation resulted in an error on the portal

#### See Also

IPortletManager Interface | Plumtree.Remote.PRC Namespace