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


IXmlPropertySet.CountX Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IXmlPropertySet.CountX Property

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,
  System.Int32* Count
);
[C++]

Parameters Name [in]
Name is a parameter of type BSTR Count [out, retval]
Count is a parameter of type long*

Product Availability

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

Description

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.

Remarks

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.

See Also

IXmlPropertySet Interface