当前位置: 首页>>代码示例>>C#>>正文


C# System.WriteElementString方法代码示例

本文整理汇总了C#中System.WriteElementString方法的典型用法代码示例。如果您正苦于以下问题:C# System.WriteElementString方法的具体用法?C# System.WriteElementString怎么用?C# System.WriteElementString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System的用法示例。


在下文中一共展示了System.WriteElementString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: WriteXml

		//<?xml version=\"1.0\" encoding=\"utf-16\"?><SalesOrderResponse xmlns=\"http://Shared.Web.Dynamics.Entities/SalesOrderResponse\">
        //<SalesId>VR636087</SalesId>
        //<Code>1</Code>
        //<Message>The createSalesOrder process completed successfully!</Message>
        //<DataAreaId>hrp</DataAreaId>
        //</SalesOrderResponse>"
        /// <summary>
        /// </summary>
        /// <param name="writer"></param>
        public void WriteXml(System.Xml.XmlWriter writer)
        {
            writer.WriteElementString("SalesId", this.SalesId);
            writer.WriteElementString("Code", String.Format("{0}", this.Code));
            writer.WriteElementString("Message", this.Message);
            writer.WriteElementString("DataAreaId", this.DataAreaId);
        }
开发者ID:juaqaai,项目名称:CompanyGroup.ServiceLayers,代码行数:16,代码来源:SecondhandOrderCreateResult.cs

示例2: WriteXml

 public void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteStartElement("skin");
     writer.WriteElementString("skinName", SkinName);
     writer.WriteElementString("inUse", InUse.ToString());
     writer.WriteEndElement();
 }
开发者ID:jackiechou,项目名称:thegioicuaban.com,代码行数:7,代码来源:SkinInfo.cs

示例3: WriteXml

 public void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteStartElement("stateVariable");
     writer.WriteElementString("name", this.Name);
     writer.WriteElementString("dataType", this.DataType);
     writer.WriteEndElement();
 }
开发者ID:automaters,项目名称:Upnp,代码行数:7,代码来源:UpnpStateVariable.cs

示例4: buildXml

        public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("excel_underlyingCalcID");

                if (this.attributeValue_ != "")
                {
                    xmlWriter.WriteAttributeString("usingType", this.attributeValue_);
                }

                xmlWriter.WriteElementString("excel_type" , "excel_averageUnderlyingCalcID");
                xmlWriter.WriteStartElement("excel_averageUnderlyingCalcID");

                    xmlWriter.WriteElementString("eventDate", this.eventDate_.ToString(StringFormat.XmlDateFormat_));
                    foreach (var item in this.excel_selectedUnderlyingViewModel_)
                    {
                        item.buildXml(xmlWriter);
                    }    

                    foreach (var item in this.weight_)
                    {
                        xmlWriter.WriteElementString("weight", item);
                    }
                    
                xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:26,代码来源:Excel_averageUnderlyingCalcIDViewModel.cs

示例5: WriteXml

 /// <summary>
 /// </summary>
 /// <param name="writer"></param>
 public void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteElementString("CustomerId", _CustomerId);
     writer.WriteElementString("DataAreaId", _DataAreaId);
     writer.WriteElementString("RecId", Convert.ToString(_RecId));
     writer.WriteElementString("RegId", _RegId);
 }
开发者ID:juaqaai,项目名称:CompanyGroup.ServiceLayers,代码行数:10,代码来源:CustomerCreateResult.cs

示例6: buildXml

 public  void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("excel_rateData");
         xmlWriter.WriteElementString("tenor" , this.tenor_);
         xmlWriter.WriteElementString("rateType" , this.rateType_);
         xmlWriter.WriteElementString("value" , this.value_);
     xmlWriter.WriteEndElement();
 }
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:8,代码来源:Excel_rateDataViewModel.cs

示例7: WriteXml

 public void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteStartElement("argument");
     writer.WriteElementString("name", this.Name);
     writer.WriteElementString("direction", this.Direction);
     writer.WriteElementString("relatedStateVariable", this.RelatedStateVariable);
     writer.WriteEndElement();
 }
开发者ID:automaters,项目名称:Upnp,代码行数:8,代码来源:UpnpArgument.cs

示例8: WriteXml

 /// <summary>
 /// Converts an object into its XML representation. 
 /// </summary>
 /// <param name="writer">The <see cref="XmlWriter" /> stream to which the object is serialized.</param>
 public void WriteXml(System.Xml.XmlWriter writer)
 {
   writer.WriteElementString("connect-type", EnumHelper.GetDescription(this.ConnectType));
   writer.WriteStartElement("authorization");
   writer.WriteElementString("name", this.Authorization.Key);
   writer.WriteElementString("value", this.Authorization.Value);
   writer.WriteEndElement(); // authorization
 }
开发者ID:haoasqui,项目名称:ONLYOFFICE-Server,代码行数:12,代码来源:Invitation.cs

示例9: WriteXml

 public void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteElementString("City", _city);
     writer.WriteElementString("Country", _country);
     writer.WriteElementString("County", _county);
     writer.WriteElementString("PostCode", _postCode);
     writer.WriteElementString("Street", _street);
 }
开发者ID:juaqaai,项目名称:CompanyGroup.ServiceLayers,代码行数:8,代码来源:MailAddressCreate.cs

示例10: buildXml

 public  void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("calculationAmount");
         xmlWriter.WriteElementString("currency" , this.currency_);
             
         xmlWriter.WriteElementString("amount" , this.amount_);
             
     xmlWriter.WriteEndElement();
 }
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:9,代码来源:CalculationAmountViewModel.cs

示例11: WriteXml

 public void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteStartElement("module");
     writer.WriteElementString("moduleName", ModuleName);
     writer.WriteElementString("friendlyName", FriendlyName);
     writer.WriteElementString("version", Version);
     writer.WriteElementString("instances", Instances.ToString());
     writer.WriteEndElement();
 }
开发者ID:jackiechou,项目名称:thegioicuaban.com,代码行数:9,代码来源:ModuleInfo.cs

示例12: WriteAnswerSetInfo

        private static void WriteAnswerSetInfo(System.Xml.XmlWriter writer, string sourceId, string targetId)
        {
            writer.WriteStartElement("answer_info");

            writer.WriteElementString("source_artifacts_collection", sourceId.Trim());
            writer.WriteElementString("target_artifacts_collection", targetId.Trim());

            writer.WriteEndElement();
        }
开发者ID:jira-sarec,项目名称:ICSE-2012-TraceLab,代码行数:9,代码来源:AnswerSetExporterUtilities.cs

示例13: buildXml

 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("excel_additionalOption");
         xmlWriter.WriteElementString("excel_type" , "excel_puttableOption");
         xmlWriter.WriteStartElement("excel_puttableOption");
             xmlWriter.WriteElementString("optionType", this.optionType_);
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:9,代码来源:Excel_puttableOptionViewModel.cs

示例14: buildXml

 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("messageBody");
         xmlWriter.WriteElementString("excel_type" , "clearQueue");
         xmlWriter.WriteStartElement("clearQueue");
             xmlWriter.WriteElementString("actionType" , this.actionType_);
             
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:10,代码来源:ClearQueueViewModel.cs

示例15: buildXml

 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("couponCalculation");
         xmlWriter.WriteElementString("type" , "fixedCouponCalculation");
         xmlWriter.WriteStartElement("fixedCouponCalculation");
             xmlWriter.WriteElementString("fixedRate" , this.fixedRate_);
             
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:10,代码来源:FixedCouponCalculationViewModel.cs


注:本文中的System.WriteElementString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。