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


IPropertySet Interface (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
ArcGIS Developer Help

IPropertySet Interface

Provides access to members for managing a PropertySet. Note: the IPropertySet interface has been superseded by IPropertySet2. Please consider using the more recent version.

Product Availability

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

Description

The IPropertySet interface contains methods to set and retrieve the collection of named value pairs in the PropertySet.

Members

Name Description
Read-only property Count The number of properties contained in the property set.
Method GetAllProperties The name and value of all the properties in the property set.
Method GetProperties The values of the specified properties.
Method GetProperty The value of the specified property.
Method IsEqual True if the property set is the same as the input property set.
Method RemoveProperty Removes a property from the set.
Method SetProperties The values of the specified properties.
Method SetProperty The value of the specified property.

Classes that implement IPropertySet

Classes Description
GenericLocatorStyle (esriLocation) A generic style for creating a new locator.
PropertySet Esri Property Set object.
RasterFunctionTemplateArguments (esriDataSourcesRaster) A class for template function arguments.
WeightedOverlayFunctionArguments (esriSpatialAnalyst) The weighted overlay function arguments.
WeightedSumFunctionArguments (esriSpatialAnalyst) The weighted sum function arguments.
XmlPropertySet (esriGeoDatabase) Esri XML PropertySet object.

Remarks

PropertySet is a generic class that is used to hold a set of properties for anything. One example for the use of a property set is to hold the properties required for opening up an SDE workspace as is shown in the example code.

Typically a property set can be thought of as a set of keys (strings) and values (variants/objects). One notable exception to this is when using the IPropertySet interface on an XmlPropertySet object. An XML document can contain multiple elements with the same name (i.e. "property/child") and different values. Because of this, the values returned by this interface from an XmlPropertySet may be jagged two-dimensional arrays (arrays containing other arrays). See the XmlPropertySet coclass' documentation in the Geodatabase library for more details and code examples.