SyndicationLink.CreateSelfLink Methode

Definition

Erstellt einen neuen SyndicationLink mit dem Beziehungstyp self.

Überlädt

CreateSelfLink(Uri, String)

Erstellt einen neuen SyndicationLink mit der angegebenen URI, dem Medientyp und dem Beziehungstyp self.

CreateSelfLink(Uri)

Erstellt einen neuen SyndicationLink mit der angegebenen URI und dem Beziehungstyp self.

Hinweise

Diese Methode erstellt ein neues SyndicationLink-Objekt und stellt RelationshipType auf self ein.

Source:
SyndicationLink.cs
Source:
SyndicationLink.cs
Source:
SyndicationLink.cs

Erstellt einen neuen SyndicationLink mit der angegebenen URI, dem Medientyp und dem Beziehungstyp self.

public:
 static System::ServiceModel::Syndication::SyndicationLink ^ CreateSelfLink(Uri ^ uri, System::String ^ mediaType);
public static System.ServiceModel.Syndication.SyndicationLink CreateSelfLink (Uri uri, string mediaType);
static member CreateSelfLink : Uri * string -> System.ServiceModel.Syndication.SyndicationLink
Public Shared Function CreateSelfLink (uri As Uri, mediaType As String) As SyndicationLink

Parameter

uri
Uri

Der URI zur verknüpften Ressource.

mediaType
String

Der Medientyp des Links.

Gibt zurück

Eine SyndicationLink-Instanz.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie ein Selbst-Link erstellt wird.

SyndicationLink link = SyndicationLink.CreateSelfLink(new Uri("http://server/link"), "text/html");
Dim link As SyndicationLink = SyndicationLink.CreateSelfLink(New Uri("http://server/link"), "text/html")

Gilt für:

Source:
SyndicationLink.cs
Source:
SyndicationLink.cs
Source:
SyndicationLink.cs

Erstellt einen neuen SyndicationLink mit der angegebenen URI und dem Beziehungstyp self.

public:
 static System::ServiceModel::Syndication::SyndicationLink ^ CreateSelfLink(Uri ^ uri);
public static System.ServiceModel.Syndication.SyndicationLink CreateSelfLink (Uri uri);
static member CreateSelfLink : Uri -> System.ServiceModel.Syndication.SyndicationLink
Public Shared Function CreateSelfLink (uri As Uri) As SyndicationLink

Parameter

uri
Uri

Der URI zur verknüpften Ressource.

Gibt zurück

Eine SyndicationLink-Instanz.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie ein Selbst-Link erstellt wird.

SyndicationLink link = SyndicationLink.CreateSelfLink(new Uri("http://server/link"));
Dim link As SyndicationLink = SyndicationLink.CreateSelfLink(New Uri("http://server/link"))

Gilt für: