ChoiceList ChoiceList ChoiceList Class



This API is now obsolete.

Provides methods to search, remove, and rename vocabulary terms for user profile properties.

public ref class ChoiceList
[System.Obsolete("Use CoreProperty TermSet to load the taxonomy for a Profile property.")]
public class ChoiceList
Public Class ChoiceList


After you define a user profile property with a choice list, you cannot redefine it so it does not have the list, nor can you add a list to a property that is not defined with one.


ChoiceList(Property) ChoiceList(Property) ChoiceList(Property)

Initializes a new instance of a ChoiceList class.


Add(String) Add(String) Add(String)

Adds a vocabulary item to the choice list.

FindTerms(String, ChoiceListSearchOption) FindTerms(String, ChoiceListSearchOption) FindTerms(String, ChoiceListSearchOption)

Searches for vocabulary items that match the specified pattern.

GetAllTerms(Boolean) GetAllTerms(Boolean) GetAllTerms(Boolean)

Gets all vocabulary terms in this choice list. Optionally refreshes the list from the user profile store.

Remove(String) Remove(String) Remove(String)

Deletes the specified vocabulary item from the choice list.

Rename(String, String) Rename(String, String) Rename(String, String)

Renames a vocabulary item with the new name.

Extension Methods

ToJson(Object) ToJson(Object) ToJson(Object)

Applies to