public virtual void WriteTo(ArcXmlWriter writer) { try { writer.WriteStartElement(XmlName); if (Accuracy > 0) { writer.WriteAttributeString("accuracy", Accuracy.ToString()); } if (FeatureLimit > 0) { writer.WriteAttributeString("featurelimit", FeatureLimit.ToString()); } if (!String.IsNullOrEmpty(JoinExpression)) { writer.WriteAttributeString("joinexpression", JoinExpression); } if (!String.IsNullOrEmpty(JoinTables)) { writer.WriteAttributeString("jointables", JoinTables); } if (!String.IsNullOrEmpty(Subfields)) { writer.WriteAttributeString("subfields", Subfields); } if (!String.IsNullOrEmpty(Where)) { writer.WriteAttributeString("where", Where); } if (Buffer != null) { Buffer.WriteTo(writer); } if (FeatureCoordSys != null) { FeatureCoordSys.WriteTo(writer); } writer.WriteEndElement(); } catch (Exception ex) { if (ex is ArcXmlException) { throw ex; } else { throw new ArcXmlException(String.Format("Could not write {0} object.", GetType().Name), ex); } } }
public void WriteTo(ArcXmlWriter writer) { try { writer.WriteStartElement(XmlName); if (Background != null) { Background.WriteTo(writer); } if (!Envelope.IsNull) { EnvelopeSerializer.WriteTo(writer, Envelope); } if (FeatureCoordSys != null) { FeatureCoordSys.WriteTo(writer); } if (FilterCoordSys != null) { FilterCoordSys.WriteTo(writer); } if (ImageSize != null) { ImageSize.WriteTo(writer); } if (LayerList != null) { LayerList.WriteTo(writer); } if (Output != null) { Output.WriteTo(writer); } writer.WriteEndElement(); } catch (Exception ex) { if (ex is ArcXmlException) { throw ex; } else { throw new ArcXmlException(String.Format("Could not write {0} object.", GetType().Name), ex); } } }
public void WriteTo(ArcXmlWriter writer) { try { writer.WriteStartElement(XmlName); if (!String.IsNullOrEmpty(ID)) { writer.WriteAttributeString("id", ID); } if (!Envelope.IsNull) { EnvelopeSerializer.WriteTo(writer, Envelope); } if (FeatureCoordSys != null) { FeatureCoordSys.WriteTo(writer); } if (FilterCoordSys != null) { FilterCoordSys.WriteTo(writer); } if (LayerList != null) { LayerList.WriteTo(writer); } if (Scale != null) { Scale.WriteTo(writer); } writer.WriteEndElement(); } catch (Exception ex) { if (ex is ArcXmlException) { throw ex; } else { throw new ArcXmlException(String.Format("Could not write {0} object.", GetType().Name), ex); } } }
public override void WriteTo(ArcXmlWriter writer) { try { writer.WriteStartElement(XmlName); writer.WriteAttributeString("maxcandidates", MaxCandidates.ToString()); writer.WriteAttributeString("minscore", MinScore.ToString()); writer.WriteAttributeString("spellingsensitivity", SpellingSensitivity.ToString()); if (Address != null) { Address.WriteTo(writer); } if (Layer != null) { Layer.WriteTo(writer); } if (FeatureCoordSys != null) { FeatureCoordSys.WriteTo(writer); } writer.WriteEndElement(); } catch (Exception ex) { if (ex is ArcXmlException) { throw ex; } else { throw new ArcXmlException(String.Format("Could not write {0} object.", GetType().Name), ex); } } }
public override void WriteTo(ArcXmlWriter writer) { try { writer.WriteStartElement(XmlName); if (AutoResize) { writer.WriteAttributeString("autoresize", "true"); } if (!String.IsNullOrEmpty(DataFrame)) { writer.WriteAttributeString("dataframe", DataFrame); } if (Show != ShowType.None) { writer.WriteAttributeString("show", ArcXmlEnumConverter.ToArcXml(typeof(ShowType), Show)); } if (UseServiceDatum) { writer.WriteAttributeString("useservicedatum", "true"); } if (Environment != null) { Environment.WriteTo(writer); } if (FeatureCoordSys != null) { FeatureCoordSys.WriteTo(writer); } if (FilterCoordSys != null) { FilterCoordSys.WriteTo(writer); } if (Properties != null) { Properties.WriteTo(writer); } if (Layers != null) { for (int i = 0; i < Layers.Count; ++i) { Layers[i].WriteTo(writer); } } writer.WriteEndElement(); } catch (Exception ex) { if (ex is ArcXmlException) { throw ex; } else { throw new ArcXmlException(String.Format("Could not write {0} object.", GetType().Name), ex); } } }