共用方式為


SyndicationLink.CreateMediaEnclosureLink Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)

Syntax

'Declaration
Public Shared Function CreateMediaEnclosureLink ( _
    uri As Uri, _
    mediaType As String, _
    length As Long _
) As SyndicationLink
public static SyndicationLink CreateMediaEnclosureLink(
    Uri uri,
    string mediaType,
    long length
)

Parameters

  • uri
    Type: System.Uri
    The URI of the linked resource.
  • length
    Type: System.Int64
    The length of the linked content.

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.