AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IPortletResponse.SetSettingValue Method

Sets a new value for any portal preference associated with this portlet.

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

#### Parameters

type
  The type of setting (Admin, Community, CommunityPortlet, Portlet, Session or 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 | The request is not gatewayed.
ArgumentException | The user tries to set a UserInfo setting.

#### See Also

IPortletResponse Interface | Plumtree.Remote.Portlet Namespace