This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IX > IXmlPropertySet Interface > IXmlPropertySet.CountX Property (ArcObjects .NET 10.4 SDK) |
Number of occurrances of an element in the metadata.
[Visual Basic .NET] Public Function get_CountX ( _ ByVal Name As String _ ) As Integer
[C#] public int get_CountX ( string Name );
[C++]
HRESULT get_CountX(
BSTR Name,
long* Count
);
[C++]
Parameters Name [in] Name is a parameter of type BSTR Count [out, retval] Count is a parameter of type long
The Name parameter uses XPath to describe the location and condition of XML nodes in metadata. More information on XPath can be found at the IXmlPropertySet documentation.
The CountX property is the number of times the specified metadata element occurs within the XML document. For example, this could be used to find out how many Theme Keywords have been added or whether a specific theme keyword exists.