ArcObjects Library Reference (System)  

IPropertySet Interface

Provides access to members for managing a PropertySet. Note: the IPropertySet interface has been superseded byIPropertySet2. 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

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.

CoClasses that implement IPropertySet

CoClasses and 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.
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.

.NET Snippets

Create Tactical Graphic | Create Force Element | Get Force Element Property Set | Get Tactical Graphic Property Set