Amazon.ECS.Model.CollectionsCollection.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 (IsSetCollectionSummary()) {
                CollectionSummary  collectionSummary = this.CollectionSummary;
                xml.Append("<CollectionSummary>");
                xml.Append(collectionSummary.ToXMLFragment());
                xml.Append("</CollectionSummary>");
            }
            if (IsSetCollectionParent()) {
                CollectionParent  collectionParent = this.CollectionParent;
                xml.Append("<CollectionParent>");
                xml.Append(collectionParent.ToXMLFragment());
                xml.Append("</CollectionParent>");
            }
            List<CollectionItem> collectionItemList = this.CollectionItem;
            foreach (CollectionItem collectionItem in collectionItemList) {
                xml.Append("<CollectionItem>");
                xml.Append(collectionItem.ToXMLFragment());
                xml.Append("</CollectionItem>");
            }
            return xml.ToString();
        }