|ArcGIS Explorer Component Help|
|Viewpoint Class Example See Also|
Assembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 18.104.22.1680 (22.214.171.1240)
|Visual Basic (Declaration)|
- Type: System..::.String
The XML string from which the object is deserialized.
Return ValueA new object based on the XML representation.
The CreateFromXmlString and ToXmlString methods are provided as helper methods to make the code for serializing and deserializing ArcGIS Explorer objects simpler than comparable code using the .NET framework IXmlSerializable interface (although the IXmlSerializable interface is available if you wish to use it).
Serialization of ArcGIS Explorer objects xml is used in a number of situations; when saving a map, and also when passing objects between the UI thread and a background worker thread.
// Create a new Point and serialize it to an XML representation. ESRI.ArcGISExplorer.Geometry.Point ptObject1 = new ESRI.ArcGISExplorer.Geometry.Point(); string ptXml = ptObject1.ToXmlString(); // Create a second Point by deserializing the XML string to a new object. ESRI.ArcGISExplorer.Geometry.Point ptObject2 = ESRI.ArcGISExplorer.Geometry.Point.CreateFromXmlString(ptXml);
' Create a new Point and serialize it to an XML representation. Dim ptObject1 As ESRI.ArcGISExplorer.Geometry.Point = New ESRI.ArcGISExplorer.Geometry.Point() Dim ptXml As String = ptObject1.ToXmlString() ' Create a second Point by deserializing the XML string to a new object. Dim ptObject2 As ESRI.ArcGISExplorer.Geometry.Point = ESRI.ArcGISExplorer.Geometry.Point.CreateFromXmlString(ptXml)