Freigeben über


SyndicationLink.CreateSelfLink Methode

Definition

Erstellt eine neue SyndicationLink mit dem Beziehungstyp festgelegt auf self.

Überlädt

Name Beschreibung
CreateSelfLink(Uri, String)

Erstellt eine neue SyndicationLink mit dem angegebenen URI, Medientyp und Beziehungstyp festgelegt auf self.

CreateSelfLink(Uri)

Erstellt eine neue SyndicationLink mit dem angegebenen URI und dem Beziehungstyp festgelegt auf self.

Hinweise

Mit dieser Methode wird ein neues SyndicationLink Objekt erstellt und auf RelationshipTypeself.

Quelle:
SyndicationLink.cs
Quelle:
SyndicationLink.cs
Quelle:
SyndicationLink.cs
Quelle:
SyndicationLink.cs

Erstellt eine neue SyndicationLink mit dem angegebenen URI, Medientyp und Beziehungstyp festgelegt auf 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 für die verknüpfte Ressource.

mediaType
String

Der Medientyp des Links.

Gibt zurück

Eine SyndicationLink Instanz.

Beispiele

Das folgende Beispiel zeigt, wie Sie einen Selbstlink erstellen.

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:

Quelle:
SyndicationLink.cs
Quelle:
SyndicationLink.cs
Quelle:
SyndicationLink.cs
Quelle:
SyndicationLink.cs

Erstellt eine neue SyndicationLink mit dem angegebenen URI und dem Beziehungstyp festgelegt auf 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 für die verknüpfte Ressource.

Gibt zurück

Eine SyndicationLink Instanz.

Beispiele

Das folgende Beispiel zeigt, wie Sie einen Selbstlink erstellen.

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

Gilt für: