CreateUrlContent Method

SyndicationContent.CreateUrlContent Method

Creates a new UrlSyndicationContent instance with the specified Uri and media type.

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

public static UrlSyndicationContent CreateUrlContent(
	Uri url,
	string mediaType


Type: System.Uri

The Uri of the content.

Type: System.String

The media type of the content.

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

© 2016 Microsoft