Editar

Partilhar via


SyndicationFeedFormatter.CreateCategory Method

Definition

Creates a new instance of the SyndicationCategory class.

Overloads

CreateCategory(SyndicationFeed)

Creates a new instance of the SyndicationCategory class using the specified SyndicationFeed instance.

CreateCategory(SyndicationItem)

Creates a new instance of the SyndicationCategory class using the specified SyndicationItem instance.

CreateCategory(SyndicationFeed)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Creates a new instance of the SyndicationCategory class using the specified SyndicationFeed instance.

protected public:
 static System::ServiceModel::Syndication::SyndicationCategory ^ CreateCategory(System::ServiceModel::Syndication::SyndicationFeed ^ feed);
protected internal static System.ServiceModel.Syndication.SyndicationCategory CreateCategory (System.ServiceModel.Syndication.SyndicationFeed feed);
static member CreateCategory : System.ServiceModel.Syndication.SyndicationFeed -> System.ServiceModel.Syndication.SyndicationCategory
Protected Friend Shared Function CreateCategory (feed As SyndicationFeed) As SyndicationCategory

Parameters

feed
SyndicationFeed

The SyndicationFeed used to create the new SyndicationCategory.

Returns

A new SyndicationCategory instance.

Remarks

The newly created SyndicationCategory instance is not automatically added to the SyndicationFeed instance used to create it.

Applies to

CreateCategory(SyndicationItem)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Creates a new instance of the SyndicationCategory class using the specified SyndicationItem instance.

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

Parameters

item
SyndicationItem

The SyndicationItem used to create the SyndicationCategory.

Returns

A new SyndicationCategory instance.

Remarks

The newly created SyndicationCategory instance is not automatically added to the SyndicationItem instance used to create it.

Applies to