コード例 #1
0
        public IInsertCommandBeforeOrAfterTargetSyntax InsertContent(PartialViewResult partialViewResult)
        {
            if (partialViewResult == null)
            {
                throw new ArgumentNullException("partialViewResult");
            }

            var commandBuilder = new InsertCommandBuilder(this);

            commandBuilder.SetContent(partialViewResult);
            return(commandBuilder);
        }
コード例 #2
0
        public IInsertCommandBeforeOrAfterTargetSyntax InsertContent(string html)
        {
            if (html == null)
            {
                throw new ArgumentNullException("html");
            }

            var commandBuilder = new InsertCommandBuilder(this);

            commandBuilder.SetContent(html);
            return(commandBuilder);
        }