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

UpdateEntry() public méthode

public UpdateEntry ( System.ServiceModel.Syndication.SyndicationItem oldValue, System.ServiceModel.Syndication.SyndicationItem newValue ) : System.ServiceModel.Syndication.SyndicationItem
oldValue System.ServiceModel.Syndication.SyndicationItem
newValue System.ServiceModel.Syndication.SyndicationItem
Résultat System.ServiceModel.Syndication.SyndicationItem
        public SyndicationItem UpdateEntry(SyndicationItem oldValue, SyndicationItem newValue)
        {
            if (oldValue == null)
            {
                throw new ArgumentNullException("oldValue");
            }
            if (newValue == null)
            {
                throw new ArgumentNullException("newValue");
            }
            return this.Put(oldValue.GetEditLink(true).Uri, AtomEntryContentType, HttpContentExtensions.CreateDataContract(newValue.GetAtom10Formatter())).EnsureStatusIs(HttpStatusCode.OK).Content.ReadAsDataContract<Atom10ItemFormatter>().Item;
        }

Same methods

AtomPubClient::UpdateEntry ( Uri editUri, System.ServiceModel.Syndication.SyndicationItem newValue ) : System.ServiceModel.Syndication.SyndicationItem