This document is archived and information here might be outdated.  Recommended version.


IPropertySet.SetProperties Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IP > IPropertySet Interface > IPropertySet.SetProperties Method
ArcGIS Developer Help

IPropertySet.SetProperties Method

The values of the specified properties.

[Visual Basic .NET]
Public Sub SetProperties ( _
    ByVal names As Object, _
    ByVal values As Object _
)
[C#]
public void SetProperties (
    object names,
    object values
);
[C++]
HRESULT SetProperties(
  VARIANT names,
  VARIANT values
);
[C++]
Parameters
names [in]

names is a parameter of type VARIANT values [in]
values is a parameter of type VARIANT

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Using the Name parameter to locate the specified element, the SetProperties method populates the elements, or adds an new element if it already exists, and sets the value to the coorseponding Values parameter.

The Name parameter uses XSL Patterns to specify metadata elements.  Additional information on XSL can be found in the the IXmlPropertySet documentation.

esriXmlSetPropertyAction constants are NOT available to handle situations where an element value already exists. Upon encountering elements that already have values, the new values will replace or add values to existing elements. For more control dealing with elements the IXmlPropertySet::SetPropertyX should be used.

In order to populated nodes further along in the Xml tree, nodes necessary to navigate must first be established. For instance in order to populate the "idinfo/ptcontact/cntinfo/cntperp/cntorg" node each subsequent nodes, "idinfo", "idinfo/ptcontact", "idinfo/ptcontact/cntinfo" and "idinfo/ptcontact/cntinfo/cntperp" must already be in place.

See Also

IPropertySet Interface