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


IXmlPropertySet2 Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IXmlPropertySet2 Interface

Provides access to members that manage metadata.

Product Availability

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

Members

Description
Read-only property CountX Number of occurrances of an element in the metadata.
Method DeleteProperty Deletes the specified elements.
Method DeletePropertyByAttribute Deletes the elements which have the specified attribute value.
Method DeletePropertyByNameAndAttribute Deletes the specified elements which have the specified attribute value.
Method GetAttribute Returns the set of values for the specified attribute from the specified elements.
Method GetPropertiesByAttribute Returns the set of names and values for elements which have the specified attribute value.
Method GetXml Returns the XML corresponding to the specified element as a string.
Method InitExisting Initializes an XmlPropertySet and adds the Esri group of elements.
Method InitGeneric Initializes an XmlPropertySet without adding the Esri group of elements.
Read-only property IsNew Indicates if a new XmlPropertySet was created on retrieving the metadata.
Read/write property OverwriteSyncAttribute Indicates if the Sync attribute will be ignored when setting an element's value.
Method SaveAsFile Transforms the metadata using an XSL stylesheet if specified, writes out the header if specified, and saves it in a file.
Method SetAttribute Sets the attribute of the specified element.
Method SetPropertyX Sets the value of the specified element.
Method SetXml Replaces existing metadata with the content defined in the XML.
Method SimpleGetProperty The values of the specified property.
Method TransformImages Transforms encoded thumbnail and image enclosures to files and links them into the metadata.

CoClasses that implement IXmlPropertySet2

CoClasses and Classes Description
XmlPropertySet Esri XML PropertySet object.

Remarks

When using this interface on a newly-created XmlPropertySet, the InitGeneric method should be called. See the XmlPropertySet coclass documentation for more information.

.NET Samples

TOCControl metadata viewer (Code Files: MetadataViewer)