Amazon.ECS.Model.PromotionEligibilityRequirement.ToXMLFragment C# (CSharp) Метод

ToXMLFragment() защищенный Метод

XML fragment representation of this object
Name for outer tag expected to be set by calling method. This fragment returns inner properties representation only
protected ToXMLFragment ( ) : String
Результат String
        protected internal String ToXMLFragment()
        {
            StringBuilder xml = new StringBuilder();
            if (IsSetEligibilityRequirementType()) {
                xml.Append("<EligibilityRequirementType>");
                xml.Append(EscapeXML(this.EligibilityRequirementType));
                xml.Append("</EligibilityRequirementType>");
            }
            if (IsSetQuantity()) {
                xml.Append("<Quantity>");
                xml.Append(this.Quantity);
                xml.Append("</Quantity>");
            }
            if (IsSetCurrencyAmount()) {
                Price  currencyAmount = this.CurrencyAmount;
                xml.Append("<CurrencyAmount>");
                xml.Append(currencyAmount.ToXMLFragment());
                xml.Append("</CurrencyAmount>");
            }
            return xml.ToString();
        }