SyndicationLink Constructor (Uri, String, String, String, Int64)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Initializes a new instance of the SyndicationLink class with the specified Uri, relation type, title, media type, and length.
Namespace: System.ServiceModel.Syndication
Assembly: System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)
Syntax
'Declaration
Public Sub New ( _
uri As Uri, _
relationshipType As String, _
title As String, _
mediaType As String, _
length As Long _
)
public SyndicationLink(
Uri uri,
string relationshipType,
string title,
string mediaType,
long length
)
Parameters
- uri
Type: System.Uri
The URI to the linked resource.
- relationshipType
Type: System.String
The relationship type.
- title
Type: System.String
The title of the link.
- mediaType
Type: System.String
The media type of the link.
- length
Type: System.Int64
The length of the linked content.
Remarks
Well-known relationship types include:
alternate—The link identifies an alternate version of the resource described by the containing Feed or Item.
related—The link identifies a resource related to the containing Feed or Item.
self—The link identifies a resource equivalent to the containing Feed or Item.
enclosure—The link identifies a related resource that is potentially large in size and might require special handling. This link relation is often used when podcasts or audio files are distributed in a Feed.
via—The link identifies a resource that is the source of the information provided in the containing Feed or Item.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.