FRAMES | NO FRAMES |
Gets the list of all available segmentation levels.
Availability: Business Analyst Server.
IDNamePair[] GetSegmentationLevels ( string ActiveDatasetID );
Parameter | Description |
---|---|
ActiveDatasetID | (Since version 9.3.1, this parameter is optional — it can be null). ID of the active dataset. Type String. |
Variable of type IDNamePair[] containing the list of all available segmentation levels
The example below requests IDs and names of all segmentation levels which are available in the Business Analyst Server core dataset.
C# |
// Instantiate the BAServerHelper class to access analysis methods BAServerHelper baServerHelper = new BAServerHelper(); baServerHelper.ActiveDatasetID = "USA_ESRI"; // Optional parameter IDNamePair[] levels = baServerHelper.GetSegmentationLevels(); // Iterate through segmentation levels and create their description in the // levelDescriptions array. string[] levelDescriptions = new string[levels.Length]; for (int i = 0; i < levels.Length; i++) { levelDescriptions[i] = "ID: " + levels[i].ID + "; NAME: " + levels[i].Name; } |