本文整理汇总了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);
}
示例2: WriteXml
public void WriteXml(System.Xml.XmlWriter writer)
{
writer.WriteStartElement("skin");
writer.WriteElementString("skinName", SkinName);
writer.WriteElementString("inUse", InUse.ToString());
writer.WriteEndElement();
}
示例3: WriteXml
public void WriteXml(System.Xml.XmlWriter writer)
{
writer.WriteStartElement("stateVariable");
writer.WriteElementString("name", this.Name);
writer.WriteElementString("dataType", this.DataType);
writer.WriteEndElement();
}
示例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);
}
示例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();
}
示例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();
}
示例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
}
示例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);
}
示例10: buildXml
public void buildXml(System.Xml.XmlWriter xmlWriter)
{
xmlWriter.WriteStartElement("calculationAmount");
xmlWriter.WriteElementString("currency" , this.currency_);
xmlWriter.WriteElementString("amount" , this.amount_);
xmlWriter.WriteEndElement();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}