Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IPortletResponse.SetSettingValue Method

Sets a new value for any portal preference.

void SetSettingValue(
SettingType type,
string name,
string newValue
);

#### Parameters

type
  the type of setting (e.g., Admin, Portlet, User)
name
  the name of the setting
newValue
  the new value to set for this setting

#### Remarks

This method replaces the `Set*Setting()` methods in the 3.5 GDK. Note: UserInfo settings cannot be set by a Portlet.

#### Exceptions

Exception Type | Condition
--- | ---
NotGatewayedException | if the request is not gatewayed
ArgumentException | if the user tries to set a UserInfo setting

#### See Also

IPortletResponse Interface | Plumtree.Remote.Portlet Namespace