public new static GeometryBag FromXML( string XMLString )
Public Shared Shadows Function FromXML( _ ByVal XMLString As String _ ) As GeometryBag
Parameters
- XMLString
- XML string representation of GeometryBag.
Return Value
A GeometryBag.
public new static GeometryBag FromXML( string XMLString )
Public Shared Shadows Function FromXML( _ ByVal XMLString As String _ ) As GeometryBag
Exception | Description |
---|---|
System.ArgumentNullException | The XMLString is empty or null. |
GeometryObjectException | XML is invalid or does not represent a GeometryBag string. |
const string jsonString = "{\"geometries\":[{\"x\":1,\"y\":2},{\"rings\":[[[0,0],[0,4],[3,4],[3,0],[0,0]]]}],\"spatialReference\":{\"wkid\":4326,\"latestWkid\":4326}}"; GeometryBag geometryBag = GeometryBagBuilder.FromJson(jsonString); string xml = geometryBag.ToXML(); GeometryBag xmlString = GeometryBagBuilder.FromXML(xml);
Target Platforms: Windows 10, Windows 8.1