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

Execute() private method

Execute the dynamic assembly generated by the XmlILGenerator.
private Execute ( object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results ) : void
defaultDocument object
dataSources XmlResolver
argumentList XsltArgumentList
results System.Xml.Xsl.Runtime.XmlSequenceWriter
return void
        private void Execute(object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) {
            Debug.Assert(results != null);

            // Set up message sink
            this.onMessage = argumentList != null ? argumentList.xsltMessageEncountered : null;

            // Ensure that dataSources is always non-null
            if (dataSources == null)
                dataSources = XmlNullResolver.Singleton;

            this.delExec(new XmlQueryRuntime(this, defaultDocument, dataSources, argumentList, results));
        }
    }

Same methods

XmlILCommand::Execute ( IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, Stream results ) : void
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, 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