示例#1
0
 public static string SerializeExternalQueryResult(ImageServerExternalQueryResult data)
 {
     return(JsmlSerializer.Serialize(data, "ImageServerExternalQueryResult",
                                     new JsmlSerializer.SerializeOptions
     {
         Hook = ExternalQueryHook,
         DataContractTest = IsImageServerExternalQueryContract
     }));
 }
示例#2
0
        public static XmlDocument SerializeExternalQueryResultToXmlDocument(ImageServerExternalQueryResult data)
        {
            var s = JsmlSerializer.Serialize(data, "ImageServerExternalQueryResult",
                                             new JsmlSerializer.SerializeOptions
            {
                Hook             = ExternalQueryHook,
                DataContractTest = IsImageServerExternalQueryContract
            });

            var d = new XmlDocument();

            d.LoadXml(s);
            return(d);
        }
		public static XmlDocument SerializeExternalQueryResultToXmlDocument(ImageServerExternalQueryResult data)
		{
			var s = JsmlSerializer.Serialize(data, "ImageServerExternalQueryResult",
			                                 new JsmlSerializer.SerializeOptions
				                                 {
					                                 Hook = ExternalQueryHook,
					                                 DataContractTest = IsImageServerExternalQueryContract
				                                 });

			var d = new XmlDocument();
			d.LoadXml(s);
			return d;
		}
		public static string SerializeExternalQueryResult(ImageServerExternalQueryResult data)
		{
			return JsmlSerializer.Serialize(data, "ImageServerExternalQueryResult",
			                                new JsmlSerializer.SerializeOptions
				                                {
					                                Hook = ExternalQueryHook,
					                                DataContractTest = IsImageServerExternalQueryContract
				                                });
		}