Compartir a través de


UrlSyndicationContent Constructor (Uri, String)

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

Initializes a new instance of the UrlSyndicationContent class with the specified Uri and media type.

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

Syntax

'Declaration
Public Sub New ( _
    url As Uri, _
    mediaType As String _
)
public UrlSyndicationContent(
    Uri url,
    string mediaType
)

Parameters

  • mediaType
    Type: System.String
    The media type of the resource referenced by the Uri.

Remarks

The media type parameter can be set to any known MIME type value as defined in RFC 2046.

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.