SyndicationLink Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe SyndicationLink.
Surcharges
| Nom | Description |
|---|---|
| SyndicationLink() |
Crée une instance de l’instance SyndicationLink . |
| SyndicationLink(SyndicationLink) |
Initialise une nouvelle instance de la SyndicationLink classe avec l’instance spécifiée. |
| SyndicationLink(Uri) |
Initialise une nouvelle instance de la SyndicationLink classe avec le fichier spécifié Uri. |
| SyndicationLink(Uri, String, String, String, Int64) |
Initialise une nouvelle instance de la SyndicationLink classe avec le type de relation, le titre, le type de média et la longueur spécifiés Uri. |
SyndicationLink()
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
Crée une instance de l’instance SyndicationLink .
public:
SyndicationLink();
public SyndicationLink();
Public Sub New ()
S’applique à
SyndicationLink(SyndicationLink)
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
Initialise une nouvelle instance de la SyndicationLink classe avec l’instance spécifiée.
protected:
SyndicationLink(System::ServiceModel::Syndication::SyndicationLink ^ source);
protected SyndicationLink(System.ServiceModel.Syndication.SyndicationLink source);
new System.ServiceModel.Syndication.SyndicationLink : System.ServiceModel.Syndication.SyndicationLink -> System.ServiceModel.Syndication.SyndicationLink
Protected Sub New (source As SyndicationLink)
Paramètres
- source
- SyndicationLink
Instance SyndicationLink utilisée pour initialiser la nouvelle instance.
S’applique à
SyndicationLink(Uri)
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
Initialise une nouvelle instance de la SyndicationLink classe avec le fichier spécifié Uri.
public:
SyndicationLink(Uri ^ uri);
public SyndicationLink(Uri uri);
new System.ServiceModel.Syndication.SyndicationLink : Uri -> System.ServiceModel.Syndication.SyndicationLink
Public Sub New (uri As Uri)
Paramètres
- uri
- Uri
URI de la ressource liée.
Exemples
L’exemple suivant montre comment appeler ce constructeur.
SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
SyndicationLink link = new SyndicationLink(new Uri("http://server/link"));
feed.Links.Add(link);
Dim feed As SyndicationFeed = New SyndicationFeed("Feed Title", "Feed Description", New Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now)
Dim link As SyndicationLink = New SyndicationLink(New Uri("http://server/link"))
feed.Links.Add(link)
S’applique à
SyndicationLink(Uri, String, String, String, Int64)
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
Initialise une nouvelle instance de la SyndicationLink classe avec le type de relation, le titre, le type de média et la longueur spécifiés Uri.
public:
SyndicationLink(Uri ^ uri, System::String ^ relationshipType, System::String ^ title, System::String ^ mediaType, long length);
public SyndicationLink(Uri uri, string relationshipType, string title, string mediaType, long length);
new System.ServiceModel.Syndication.SyndicationLink : Uri * string * string * string * int64 -> System.ServiceModel.Syndication.SyndicationLink
Public Sub New (uri As Uri, relationshipType As String, title As String, mediaType As String, length As Long)
Paramètres
- uri
- Uri
URI de la ressource liée.
- relationshipType
- String
Type de relation.
- title
- String
Le titre du lien.
- mediaType
- String
Type de média du lien.
- length
- Int64
Longueur du contenu lié.
Exemples
L’exemple suivant montre comment appeler ce constructeur.
SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
SyndicationLink link = new SyndicationLink(new Uri("http://server/link"), "alternate", "Link Title", "text/html", 1000);
feed.Links.Add(link);
Dim feed As SyndicationFeed = New SyndicationFeed("Feed Title", "Feed Description", New Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now)
Dim link As SyndicationLink = New SyndicationLink(New Uri("http://server/link"), "alternate", "Link Title", "text/html", 1000)
feed.Links.Add(link)
Remarques
Les types de relations connus sont les suivants :
alternate- Le lien identifie une autre version de la ressource décrite par le flux ou l’élément contenant.related- Le lien identifie une ressource liée au flux ou à l’élément conteneur.self- Le lien identifie une ressource équivalente au flux ou à l’élément conteneur.enclosure- Le lien identifie une ressource associée potentiellement volumineuse et peut nécessiter une gestion spéciale. Cette relation de lien est souvent utilisée lorsque des podcasts ou des fichiers audio sont distribués dans un flux.via- Le lien identifie une ressource qui est la source des informations fournies dans le flux ou l’élément contenant.