SyndicationLink.CreateMediaEnclosureLink(Uri, String, Int64) Método

Definição

Cria um vínculo de compartimento de mídia com o URI, o tipo de mídia e o comprimento especificados.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

Parâmetros

uri
Uri

O URI do recurso vinculado.The URI of the linked resource.

mediaType
String

O tipo de mídia do link.The media type of the link.

length
Int64

O comprimento do conteúdo vinculado.The length of the linked content.

Retornos

SyndicationLink

Uma nova instância de SyndicationLink.A new SyndicationLink instance.

Exemplos

O exemplo a seguir mostra como criar um link de compartimento de mídia.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)

Comentários

Esse método cria um novo SyndicationLink objeto e define RelationshipType como enclosure .This method creates a new SyndicationLink object and sets RelationshipType to enclosure.

Aplica-se a