ArcObjects Library Reference (System)  

IXMLSerializer.WriteObject Method

Writes an object as XML.

[Visual Basic .NET]
Public Sub WriteObject ( _
    ByVal pWriter As IXMLWriter, _
    ByVal environment As IPropertySet, _
    ByVal flags As IXMLFlags, _
    ByVal elementName As String, _
    ByVal elementNamespaceURI As String, _
    ByVal obj As Object _
)
[C#]
public void WriteObject (
    IXMLWriter pWriter,
    IPropertySet environment,
    IXMLFlags flags,
    string elementName,
    string elementNamespaceURI,
    object obj
);
[C++]
HRESULT WriteObject(
  IXMLWriter* pWriter,
  IPropertySet* environment,
  IXMLFlags* flags,
  BSTR elementName,
  BSTR elementNamespaceURI,
  LPUNKNOWN obj
);
[C++]

Parameters

pWriter [in]

  pWriter is a parameter of type IXMLWriter

environment [in]

  environment is a parameter of type IPropertySet

flags [in]

  flags is a parameter of type IXMLFlags

elementName [in]   elementName is a parameter of type BSTR elementNamespaceURI [in]   elementNamespaceURI is a parameter of type BSTR obj [in]   obj is a parameter of type LPUNKNOWN

Product Availability

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

See Also

IXMLSerializer Interface

.NET Snippets

Serialize an XML File |