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

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

protected UrlSyndicationContent (System.ServiceModel.Syndication.UrlSyndicationContent source);

Parameters

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

UrlSyndicationContent(Uri, String)

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, string mediaType);

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");

Remarks

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

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)