SyndicationLink.CreateSelfLink Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new SyndicationLink with the relationship type set to self
.
Overloads
CreateSelfLink(Uri, String) |
Creates a new SyndicationLink with the specified URI, media type, and relationship type set to |
CreateSelfLink(Uri) |
Creates a new SyndicationLink with the specified URI and relationship type set to |
Remarks
This method creates a new SyndicationLink object and sets RelationshipType to self
.
CreateSelfLink(Uri, String)
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
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
Parameters
- uri
- Uri
The URI to the linked resource.
- mediaType
- String
The media type of the link.
Returns
A SyndicationLink instance.
Examples
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")
Applies to
CreateSelfLink(Uri)
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
- Source:
- SyndicationLink.cs
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
Parameters
- uri
- Uri
The URI to the linked resource.
Returns
A SyndicationLink instance.
Examples
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"))
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기