Share via


SyndicationFeedFormatter.SetFeed(SyndicationFeed) Méthode

Définition

Associe une instance SyndicationFeed à SyndicationFeedFormatter.

protected public:
 virtual void SetFeed(System::ServiceModel::Syndication::SyndicationFeed ^ feed);
protected internal virtual void SetFeed (System.ServiceModel.Syndication.SyndicationFeed feed);
abstract member SetFeed : System.ServiceModel.Syndication.SyndicationFeed -> unit
override this.SetFeed : System.ServiceModel.Syndication.SyndicationFeed -> unit
Protected Friend Overridable Sub SetFeed (feed As SyndicationFeed)

Paramètres

Remarques

Cette méthode est protégée et ne peut pas être appelée à partir du code utilisateur. Pour associer une instance SyndicationFeed à un SyndicationFeedFormatter, créez une nouvelle instance SyndicationFeedFormatter et passez le constructeur à l'instance SyndicationFeed ou chargez une instance SyndicationFeed dans le SyndicationFeedFormatter en appelant la méthode ReadFrom(XmlReader).

S’applique à