This document is archived and information here might be outdated. Recommended version. |
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
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.