This method retrieves a specified property value for layer objects.
HRESULT GetValue(
[in] BSTR Name,
[out] PropertyValueType propValType,
[out, retval] VARIANT* Value)
Parameters:
Name – A string value. The name of the property to be set. The parameter can be a name of any property field as it appears in the Layer properties sheet in TerraExplorer (e.g., “Line Color”).
prpValType – An enum that indicates how the value parameter is interpreted. The PropertyValueType enum can use any of the following values:
PROPERTY_VALUE = 0
Property value or expression.
PROPERTY_CLASSIFICATION = 1
Classification XML.
Value – The value of the property as defined in the propValType parameter. This parameter can be any of the following:
The type expected for the specified property. For example, “Line Color” returns a long type value.
A valid expression encapsulated in “<” and “>” marks, as defined in the user manual. See: “Feature Layers” chapter in the User Manual.
An XML string, See: the SetValue method description.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |