System.Xml.Xsl.XmlILCommand.Execute C# (CSharp) Method

Execute() public method

Default document as XPathNavigator.
public Execute ( IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, Stream results ) : void
contextDocument IXPathNavigable
dataSources XmlResolver
argumentList XsltArgumentList
results System.IO.Stream
return void
        public override void Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, Stream results) {
            if (results == null)
                throw new ArgumentNullException("results");

            Execute(contextDocument, dataSources, argumentList, XmlWriter.Create(results, this.defaultWriterSettings));
        }

Same methods

XmlILCommand::Execute ( IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results ) : void
XmlILCommand::Execute ( IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results ) : void
XmlILCommand::Execute ( System.IO.XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, Stream results ) : void
XmlILCommand::Execute ( System.IO.XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results ) : void
XmlILCommand::Execute ( System.IO.XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results ) : void
XmlILCommand::Execute ( object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results ) : void
XmlILCommand::Execute ( object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, bool closeWriter ) : void
XmlILCommand::Execute ( string contextDocumentUri, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results ) : void

Usage Example

Ejemplo n.º 1
0
        //------------------------------------------------
        // Main Transform overloads
        //------------------------------------------------

        // SxS: This method does not take any resource name and does not expose any resources to the caller.
        // It's OK to suppress the SxS warning.
        public void Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
        {
#if FEATURE_COMPILED_XSL
            CheckArguments(input, results);
            CheckCommand();
            _command.Execute((object)input, documentResolver, arguments, results);
#else
            throw new PlatformNotSupportedException(SR.Xslt_NotSupported);
#endif
        }
All Usage Examples Of System.Xml.Xsl.XmlILCommand::Execute