Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IPortletBase.AddAdminSetting Method

Adds an administrative setting for the Portlet.

void AddAdminSetting(
string name,
string value
);

#### Parameters

name
  the name of the new setting to add
value
  the value of the setting to add

#### Remarks

Administrative settings are shared by all users and all Communities. If there is already an admininstrative setting of the same name, this method will overwrite it. Note: This setting will not be saved in the portal until `Save()` is called.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | if the setting has an invalid (blank) name
HttpException | if the query interface URL is not valid
PortalException | if the operation resulted in an error on the portal
SoapException | if there is a communication problem during the execution of the remote method call

#### See Also

IPortletBase Interface | Plumtree.Remote.PRC Namespace