Język

UrlSyndicationContent Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy UrlSyndicationContent.

Przeciążenia

Nazwisko Opis
UrlSyndicationContent(UrlSyndicationContent)

Inicjuje nowe wystąpienie UrlSyndicationContent klasy z określonym UrlSyndicationContent wystąpieniem.

UrlSyndicationContent(Uri, String)

Inicjuje nowe wystąpienie UrlSyndicationContent klasy o określonym Uri typie i nośniku.

UrlSyndicationContent(UrlSyndicationContent)

Źródło:
UrlSyndicationContent.cs
Źródło:
UrlSyndicationContent.cs
Źródło:
UrlSyndicationContent.cs
Źródło:
UrlSyndicationContent.cs

Inicjuje nowe wystąpienie UrlSyndicationContent klasy z określonym UrlSyndicationContent wystąpieniem.

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)

Parametry

Dotyczy

UrlSyndicationContent(Uri, String)

Źródło:
UrlSyndicationContent.cs
Źródło:
UrlSyndicationContent.cs
Źródło:
UrlSyndicationContent.cs
Źródło:
UrlSyndicationContent.cs

Inicjuje nowe wystąpienie UrlSyndicationContent klasy o określonym Uri typie i nośniku.

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)

Parametry

url
Uri

Uri.

mediaType
String

Typ nośnika zasobu, do których Uriodwołuje się element .

Przykłady

W poniższym przykładzie pokazano, jak wywołać ten konstruktor.

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

Uwagi

Parametr typu nośnika można ustawić na dowolną znaną wartość typu MIME zdefiniowaną w dokumencie RFC 2046.

Dotyczy