Op Englesch liesen Editéieren

Deelen iwwer


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

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

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

Parameters

Applies to

.NET 10 (package-provided) an aner Versiounen
Produkt Versiounen
.NET 8 (package-provided), 9 (package-provided), 10 (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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

UrlSyndicationContent(Uri, String)

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

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

C#
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.

C#
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 10 (package-provided) an aner Versiounen
Produkt Versiounen
.NET 8 (package-provided), 9 (package-provided), 10 (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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)