Editar

Compartir a través de


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
Public Shared Function CreateMediaEnclosureLink (uri As Uri, mediaType As String, length As Long) As SyndicationLink

Parameters

uri
Uri

The URI of the linked resource.

mediaType
String

The media type of the link.

length
Int64

The length of the linked content.

Returns

A new SyndicationLink instance.

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