Microsoft.Protocols.TestSuites.MS_LISTSWS.MS_LISTSWSAdapter.UndoCheckOut C# (CSharp) Method

UndoCheckOut() public method

The Undo CheckOut operation is used to undo the checkout of the specified file in a document library.
public UndoCheckOut ( string pageUrl ) : bool
pageUrl string The parameter specifying where will execute the undo check out
return bool
        public bool UndoCheckOut(string pageUrl)
        {
            this.Site.Assert.IsNotNull(this.listsProxy, "The Proxy instance should not be NULL. If assert failed, the adapter need to be initialized");

            bool result = false;
            try
            {
                result = this.listsProxy.UndoCheckOut(pageUrl);

                // Verify the requirements of UndoCheckOut operation.
                this.VerifyUndoCheckOutOperation();

                // Verify the requirements of the transport.
                this.VerifyTransportRequirements();
            }
            catch (XmlSchemaValidationException exp)
            {
                // Log the errors and warnings
                this.LogSchemaValidationErrors();

                this.Site.Assert.Fail(exp.Message);
            }
            catch (SoapException)
            {
                this.VerifySoapExceptionFault();
                throw;
            }

            return result;
        }
MS_LISTSWSAdapter