SetClassification

This method sets a classification XML for a specified property for all groups. Classification XML is used for persistence of a classification which is defined in the TerraExplorer Pro GUI. When a classification is defined using the Field by Attribute dialog box, you can use GetClassification to retrieve an XML that defines this classification. SeeFeature Layers” chapter in the User Manual. Use SetProperty to set a value (e.g., set “Text” to “Bus Station”) for a specified property instead.

 

JavaScript

 

SetClassification(

       Name,

       Value)

 

C#

 

void SetClassification(

       string Name,

       string Value)

 

C++

 

HRESULT SetClassification(

       BSTR Name,

       BSTR Value)

Parameters

Name

The name of the property to be set. The parameter can be a name of any property field as it appears in the Layer tab of the Layer property sheet in TerraExplorer (e.g., “Altitude Method”).

Value

The value of the property. This parameter can be a classification XML.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.