This method sets the value of a specified property of layer objects. Unlike the SetValue method, SetProperty cannot set classification values. See: SetValue for further details.
HRESULT SetProperty(
[in] BSTR Name,
[in] 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”).
Value – The value to be assigned to the property. Pass the type that is expected for the specified property. For example, for “Line Color” pass a long type value.
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. |