Microsoft.Http.AtomPubClient.AddEntry C# (CSharp) Méthode

AddEntry() public méthode

public AddEntry ( System.ServiceModel.Syndication.SyndicationFeed feed, System.ServiceModel.Syndication.SyndicationItem newEntry ) : System.ServiceModel.Syndication.SyndicationItem
feed System.ServiceModel.Syndication.SyndicationFeed
newEntry System.ServiceModel.Syndication.SyndicationItem
Résultat System.ServiceModel.Syndication.SyndicationItem
        public SyndicationItem AddEntry(SyndicationFeed feed, SyndicationItem newEntry)
        {
            if (feed == null)
            {
                throw new ArgumentNullException("feed");
            }
            if (newEntry == null)
            {
                throw new ArgumentNullException("newEntry");
            }
            return this.Post(feed.GetSelfLink(true).Uri, AtomEntryContentType, HttpContentExtensions.CreateDataContract(newEntry.GetAtom10Formatter())).EnsureStatusIs(HttpStatusCode.Created).Content.ReadAsDataContract<Atom10ItemFormatter>().Item;
        }

Same methods

AtomPubClient::AddEntry ( Uri feedUri, System.ServiceModel.Syndication.SyndicationItem newEntry ) : System.ServiceModel.Syndication.SyndicationItem