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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應