Пример #1
0
        public SyndicationItem(string title, SyndicationContent content, Uri itemAlternateLink, string id, DateTimeOffset lastUpdatedTime)
        {
            if (title != null)
            {
                this.Title = new TextSyndicationContent(title);
            }

            _content = content;
            if (itemAlternateLink != null)
            {
                this.Links.Add(SyndicationLink.CreateAlternateLink(itemAlternateLink));
            }
            _id = id;
            _lastUpdatedTime = lastUpdatedTime;
        }
Пример #2
0
 protected internal virtual bool TryParseContent(XmlReader reader, string contentType, string version, out SyndicationContent content)
 {
     content = null;
     return(false);
 }
Пример #3
0
 protected SyndicationContent(SyndicationContent source)
 {
     CopyAttributeExtensions(source);
 }
 protected static bool TryParseContent(XmlReader reader, SyndicationItem item, string contentType, string version, out SyndicationContent content)
 {
     return(SyndicationFeedFormatter.TryParseContent(reader, item, contentType, version, out content));
 }
 internal static protected bool TryParseContent(XmlReader reader, SyndicationItem item, string contentType, string version, out SyndicationContent content)
 {
     return(item.TryParseContent(reader, contentType, version, out content));
 }