SyndicationLink.CreateSelfLink Método
Definição
Cria um novo SyndicationLink com o tipo de relacionamento definido como self.Creates a new SyndicationLink with the relationship type set to self.
Sobrecargas
| CreateSelfLink(Uri, String) |
Cria um novo SyndicationLink com o URI, o tipo de mídia e o tipo de relacionamento especificados definidos como |
| CreateSelfLink(Uri) |
Cria um novo SyndicationLink com o URI e o tipo de relacionamento especificados definidos como |
Comentários
Esse método cria um novo SyndicationLink objeto e define RelationshipType como self .This method creates a new SyndicationLink object and sets RelationshipType to self.
CreateSelfLink(Uri, String)
Cria um novo SyndicationLink com o URI, o tipo de mídia e o tipo de relacionamento especificados definidos como self.Creates a new SyndicationLink with the specified URI, media type, and relationship type set to 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
Parâmetros
- uri
- Uri
O URI para o recurso vinculado.The URI to the linked resource.
- mediaType
- String
O tipo de mídia do link.The media type of the link.
Retornos
Uma instância de SyndicationLink.A SyndicationLink instance.
Exemplos
O exemplo a seguir mostra como criar um AutoLink.The following example shows how to create a self link.
SyndicationLink link = SyndicationLink.CreateSelfLink(new Uri("http://server/link"), "text/html");
Dim link As SyndicationLink = SyndicationLink.CreateSelfLink(New Uri("http://server/link"), "text/html")
Aplica-se a
CreateSelfLink(Uri)
Cria um novo SyndicationLink com o URI e o tipo de relacionamento especificados definidos como self.Creates a new SyndicationLink with the specified URI and relationship type set to 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
Parâmetros
- uri
- Uri
O URI para o recurso vinculado.The URI to the linked resource.
Retornos
Uma instância de SyndicationLink.A SyndicationLink instance.
Exemplos
O exemplo a seguir mostra como criar um AutoLink.The following example shows how to create a self link.
SyndicationLink link = SyndicationLink.CreateSelfLink(new Uri("http://server/link"));
Dim link As SyndicationLink = SyndicationLink.CreateSelfLink(New Uri("http://server/link"))