SyndicationLink.CreateMediaEnclosureLink(Uri, String, Int64) SyndicationLink.CreateMediaEnclosureLink(Uri, String, Int64) SyndicationLink.CreateMediaEnclosureLink(Uri, String, Int64) Method

Definition

Creates a media enclosure link with the specified URI, media type, and length.

public:
 static System::ServiceModel::Syndication::SyndicationLink ^ CreateMediaEnclosureLink(Uri ^ uri, System::String ^ mediaType, long length);
public static System.ServiceModel.Syndication.SyndicationLink CreateMediaEnclosureLink (Uri uri, string mediaType, long length);
static member CreateMediaEnclosureLink : Uri * string * int64 -> System.ServiceModel.Syndication.SyndicationLink

Parameters

uri
Uri Uri Uri

The URI of the linked resource.

mediaType
String String String

The media type of the link.

length
Int64 Int64 Int64

The length of the linked content.

Returns

Examples

The following example shows how to create a media enclosure link.

SyndicationLink link = SyndicationLink.CreateMediaEnclosureLink(new Uri("http://server/link"), "audio/mpeg", 100000);
Dim link As SyndicationLink = SyndicationLink.CreateMediaEnclosureLink(New Uri("http://server/link"), "audio/mpeg", 100000)

Remarks

This method creates a new SyndicationLink object and sets RelationshipType to enclosure.

Applies to