GetPreferences

Gets all the preferences and preference categories

This method returns an array of all preferences.

If no preferences exist, an empty array is returned, otherwise an array, containing an ordered tree structure of preferences and preference categories is returned.

SOAP action: http://apiconnector.com/v2/ApiService/GetPreferences

📘

Output parameters

  • GetPreferencesResult - array of Preference objects
    • Preference or Preference category
      • PreferenceID - integer
      • PublicName - string
      • PrivateName - string
      • IsPreference - boolean
      • Order - integer
      • IsPublic - boolean
      • CategoryID - integer or string ('top' or 'bottom')
      • PreferenceCount - integer
      • Created - DateTime
      • LastModified - DateTime

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var preferences = client.GetPreferences();
}