9 instantiations of SyndicationLink
System.ServiceModel.Syndication (9)
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (2)
223var link = new SyndicationLink 501var link = new SyndicationLink
System\ServiceModel\Syndication\SyndicationFeed.cs (2)
386textInput.Link = new SyndicationLink(new Uri(value, UriKind.RelativeOrAbsolute)); 471return new SyndicationLink();
System\ServiceModel\Syndication\SyndicationItem.cs (1)
221return new SyndicationLink();
System\ServiceModel\Syndication\SyndicationLink.cs (4)
89return new SyndicationLink(uri, Atom10Constants.AlternateTag, null, mediaType, 0); 94return new SyndicationLink(uri, Rss20Constants.EnclosureTag, null, mediaType, length); 104return new SyndicationLink(uri, Atom10Constants.SelfTag, null, mediaType, 0); 107public virtual SyndicationLink Clone() => new SyndicationLink(this);
61 references to SyndicationLink
System.ServiceModel (1)
netstandard.cs (1)
264[assembly: TypeForwardedTo(typeof(SyndicationLink))]
System.ServiceModel.Syndication (59)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (6)
459internal static void WriteLink(XmlWriter writer, SyndicationLink link, Uri baseUri) 903private void ReadLink(XmlReader reader, SyndicationLink link, Uri baseUri) 992private SyndicationLink ReadLinkFrom(XmlReader reader, SyndicationFeed feed) 994SyndicationLink result = CreateLink(feed); 999private SyndicationLink ReadLinkFrom(XmlReader reader, SyndicationItem item) 1001SyndicationLink result = CreateLink(item);
System\ServiceModel\Syndication\FeedUtils.cs (4)
36internal static Collection<SyndicationLink> CloneLinks(Collection<SyndicationLink> links) 42Collection<SyndicationLink> result = new NullNotAllowedCollection<SyndicationLink>();
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (12)
221internal static SyndicationLink ReadAlternateLink(XmlReader reader, Uri baseUri, TryParseUriCallback uriParser, bool preserveAttributeExtensions) 223var link = new SyndicationLink 431feed.Links.Add(SyndicationLink.CreateSelfLink(UriFromString(val, UriKind.RelativeOrAbsolute, Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, reader))); 477result.Links.Add(SyndicationLink.CreateAlternateLink(UriFromString(fallbackAlternateLink, UriKind.RelativeOrAbsolute, fallbackAlternateLinkLocalName, fallbackAlternateLinkNamespace, reader))); 499private SyndicationLink ReadMediaEnclosure(XmlReader reader, Uri baseUri) 501var link = new SyndicationLink 804private static void WriteAlternateLink(XmlWriter writer, SyndicationLink link, Uri baseUri) 854SyndicationLink alternateLink = null; 1006SyndicationLink firstAlternateLink = null; 1083SyndicationLink selfLink = null; 1107SyndicationLink firstEnclosureLink = null; 1166private static void WriteMediaEnclosure(XmlWriter writer, SyndicationLink link, Uri baseUri)
System\ServiceModel\Syndication\SyndicationFeed.cs (9)
26private Collection<SyndicationLink> _links; 63Links.Add(SyndicationLink.CreateAlternateLink(feedAlternateLink)); 171public Collection<SyndicationLink> Links 173get => _links ??= new NullNotAllowedCollection<SyndicationLink>(); 178internal SyndicationLink InternalDocumentation { get; private set; } 180public SyndicationLink Documentation 244private SyndicationLink TryReadDocumentationFromExtension(SyndicationElementExtensionCollection elementExtensions) 254SyndicationLink documentation = Rss20FeedFormatter.ReadAlternateLink(reader, BaseUri, SyndicationFeedFormatter.DefaultUriParser, preserveAttributeExtensions: true); 469protected internal virtual SyndicationLink CreateLink()
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (8)
91protected internal static SyndicationLink CreateLink(SyndicationFeed feed) 101protected internal static SyndicationLink CreateLink(SyndicationItem item) 161protected internal static void LoadElementExtensions(XmlReader reader, SyndicationLink link, int maxExtensionSize) 223protected internal static bool TryParseAttribute(string name, string ns, string value, SyndicationLink link, string version) 286protected internal static bool TryParseElement(XmlReader reader, SyndicationLink link, string version) 336protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationLink link, string version) 386protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationLink link, string version) 539internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, SyndicationLink link)
System\ServiceModel\Syndication\SyndicationItem.cs (6)
19private Collection<SyndicationLink> _links; 45Links.Add(SyndicationLink.CreateAlternateLink(itemAlternateLink)); 125public Collection<SyndicationLink> Links 127get => _links ??= new NullNotAllowedCollection<SyndicationLink>(); 190Links.Add(SyndicationLink.CreateAlternateLink(permalink)); 219protected internal virtual SyndicationLink CreateLink()
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (6)
65protected static SyndicationLink CreateLink(SyndicationItem item) => SyndicationFeedFormatter.CreateLink(item); 79protected static void LoadElementExtensions(XmlReader reader, SyndicationLink link, int maxExtensionSize) 99protected static bool TryParseAttribute(string name, string ns, string value, SyndicationLink link, string version) 124protected static bool TryParseElement(XmlReader reader, SyndicationLink link, string version) 144protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationLink link, string version) 166protected void WriteElementExtensions(XmlWriter writer, SyndicationLink link, string version)
System\ServiceModel\Syndication\SyndicationLink.cs (7)
38protected SyndicationLink(SyndicationLink source) 82public static SyndicationLink CreateAlternateLink(Uri uri) 87public static SyndicationLink CreateAlternateLink(Uri uri, string mediaType) 92public static SyndicationLink CreateMediaEnclosureLink(Uri uri, string mediaType, long length) 97public static SyndicationLink CreateSelfLink(Uri uri) 102public static SyndicationLink CreateSelfLink(Uri uri, string mediaType) 107public virtual SyndicationLink Clone() => new SyndicationLink(this);
System\ServiceModel\Syndication\SyndicationTextInput.cs (1)
10public SyndicationLink Link { get; set; }
System.ServiceModel.Web (1)
System.ServiceModel.Web.cs (1)
34[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ServiceModel.Syndication.SyndicationLink))]