UrlSyndicationContent Constructors

Definition

Initializes a new instance of the UrlSyndicationContent class.

Overloads

UrlSyndicationContent(UrlSyndicationContent)

Initializes a new instance of the UrlSyndicationContent class with the specified UrlSyndicationContent instance.

UrlSyndicationContent(Uri, String)

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

UrlSyndicationContent(UrlSyndicationContent)

Source:
UrlSyndicationContent.cs
Source:
UrlSyndicationContent.cs
Source:
UrlSyndicationContent.cs
Source:
UrlSyndicationContent.cs

Initializes a new instance of the UrlSyndicationContent class with the specified UrlSyndicationContent instance.

protected:
 UrlSyndicationContent(System::ServiceModel::Syndication::UrlSyndicationContent ^ source);
protected UrlSyndicationContent (System.ServiceModel.Syndication.UrlSyndicationContent source);
new System.ServiceModel.Syndication.UrlSyndicationContent : System.ServiceModel.Syndication.UrlSyndicationContent -> System.ServiceModel.Syndication.UrlSyndicationContent
Protected Sub New (source As UrlSyndicationContent)

Parameters

Applies to

UrlSyndicationContent(Uri, String)

Source:
UrlSyndicationContent.cs
Source:
UrlSyndicationContent.cs
Source:
UrlSyndicationContent.cs
Source:
UrlSyndicationContent.cs

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

public:
 UrlSyndicationContent(Uri ^ url, System::String ^ mediaType);
public UrlSyndicationContent (Uri url, string mediaType);
new System.ServiceModel.Syndication.UrlSyndicationContent : Uri * string -> System.ServiceModel.Syndication.UrlSyndicationContent
Public Sub New (url As Uri, mediaType As String)

Parameters

url
Uri

The Uri.

mediaType
String

The media type of the resource referenced by the Uri.

Examples

The following example demonstrates how to call this constructor.

UrlSyndicationContent urlContent = new UrlSyndicationContent(new Uri("http://localhost/content"), "text/html");
Dim urlContent As UrlSyndicationContent = New UrlSyndicationContent(New Uri("http://localhost/content"), "text/html")

Remarks

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

Applies to