Amazon.ECS.Model.SellerLocation.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 (IsSetUserDefinedLocation()) {
                xml.Append("<UserDefinedLocation>");
                xml.Append(EscapeXML(this.UserDefinedLocation));
                xml.Append("</UserDefinedLocation>");
            }
            if (IsSetCity()) {
                xml.Append("<City>");
                xml.Append(EscapeXML(this.City));
                xml.Append("</City>");
            }
            if (IsSetState()) {
                xml.Append("<State>");
                xml.Append(EscapeXML(this.State));
                xml.Append("</State>");
            }
            if (IsSetCountry()) {
                xml.Append("<Country>");
                xml.Append(EscapeXML(this.Country));
                xml.Append("</Country>");
            }
            return xml.ToString();
        }