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


IXmlPropertySet.DeletePropertyByAttribute Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IX > IXmlPropertySet Interface > IXmlPropertySet.DeletePropertyByAttribute Method
ArcGIS Developer Help

IXmlPropertySet.DeletePropertyByAttribute Method

Deletes the elements which have the specified attribute value.

[Visual Basic .NET]
Public Sub DeletePropertyByAttribute ( _
    ByVal Attribute As String, _
    ByVal Value As String, _
    ByVal deleteParent As Boolean _
)
[C#]
public void DeletePropertyByAttribute (
    string Attribute,
    string Value,
    bool deleteParent
);
[C++]
HRESULT DeletePropertyByAttribute(
  BSTR Attribute,
  BSTR Value,
  VARIANT_BOOL deleteParent
);
[C++]
Parameters
Attribute [in]

Attribute is a parameter of type BSTR Value [in]
Value is a parameter of type BSTR deleteParent [in]
deleteParent is a parameter of type bool

Product Availability

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

Description

If true,the Boolean deleteParent parameter removes of the metadata parent element.

As an example, calling this method on XML similar to that shown below with the parameters "approved", "no", and true would not only delete the "idinfo/timeperd/timeinfo/sngdate/caldate" element, but would also delete the parent "idinfo/timeperd/timeinfo/sngdate" element.

See Also

IXmlPropertySet Interface