SyndicationItemFormatter.CreateLink(SyndicationItem) 方法

定义

创建 SyndicationLink 类的新实例。Creates a new instance of the SyndicationLink class.

protected:
 static System::ServiceModel::Syndication::SyndicationLink ^ CreateLink(System::ServiceModel::Syndication::SyndicationItem ^ item);
protected public:
 static System::ServiceModel::Syndication::SyndicationLink ^ CreateLink(System::ServiceModel::Syndication::SyndicationItem ^ item);
protected static System.ServiceModel.Syndication.SyndicationLink CreateLink (System.ServiceModel.Syndication.SyndicationItem item);
protected internal static System.ServiceModel.Syndication.SyndicationLink CreateLink (System.ServiceModel.Syndication.SyndicationItem item);
static member CreateLink : System.ServiceModel.Syndication.SyndicationItem -> System.ServiceModel.Syndication.SyndicationLink
Protected Shared Function CreateLink (item As SyndicationItem) As SyndicationLink
Protected Friend Shared Function CreateLink (item As SyndicationItem) As SyndicationLink

参数

item
SyndicationItem

要用于创建新 SyndicationItemSyndicationLinkThe SyndicationItem to use to create the new SyndicationLink.

返回

SyndicationLink

SyndicationLink 实例。A new SyndicationLink instance.

注解

新创建的 SyndicationLink 实例未自动添加到用于创建它的 SyndicationItem 实例。The newly created SyndicationLink instance is not automatically added to the SyndicationItem instance used to create it.

适用于