| | WebCenter Interaction API | |
| IPTPreferencesContext.AddPreference Method (String, String, Int32, PT_PREF_TYPES) |
This method adds a preference on the current object. The preference can be for a specific portlet or not. The preference can be for all users or for just the current user.
void AddPreference(
string
_strPreferenceName,
string
_strPreferenceValue,
int
_nPortletID,
PT_PREF_TYPES _prefType);
Parameters
-
_strPreferenceName
- is the name of the preference to add.
-
_strPreferenceValue
- is the value of the preference to add.
-
_nPortletID
- is the Portlet the preference is set on. Use 0 if the preference is not a portlet preference.
-
_prefType
- is the type of the preference. Use PT_PREF_TYPE.PT_PREFTYPE_CURRENT_USER if the preference is a preference for just this user. Use PT_PREF_TYPE.PT_PREFTYPE_ALL_USERS if the preference is a preference for all users.
See Also
IPTPreferencesContext Interface | com.plumtree.server Namespace | IPTPreferencesContext.AddPreference Overload List