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


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

IXmlPropertySet2.SetXml Method

Replaces existing metadata with the content defined in the XML.

[Visual Basic .NET]
Public Sub SetXml ( _
    ByVal xml As String _
)
[C#]
public void SetXml (
    string xml
);
[C++]
HRESULT SetXml(
  BSTR xml
);
[C++]
Parameters
xml [in]

xml is a parameter of type BSTR

Product Availability

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

Remarks

The SetXML method replaces the entire metadata document with the Xml string supplied in the XML parameter.

To target specific XML elements, the SetPropertyX method should be used.

 

See Also

IXmlPropertySet2 Interface