SyndicationLink.CreateMediaEnclosureLink(Uri, String, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET