コード例 #1
0
        internal static void RegisterRegistryAction(string key)
        {
            XmlElement action = script.CreateElement("registry");

            RootElement.AppendChild(action);
            action.SetAttribute("key", key);
        }
コード例 #2
0
        internal static void RegisterDirectoryAction(string path)
        {
            XmlElement action = script.CreateElement("directory");

            RootElement.AppendChild(action);
            action.SetAttribute("path", path);
        }
コード例 #3
0
        internal static void RegisterStopIIS7ApplicationPool(string name)
        {
            XmlElement action = script.CreateElement("stopIIS7ApplicationPool");

            RootElement.AppendChild(action);
            action.SetAttribute("name", name);
        }
コード例 #4
0
        internal static void RegisterIIS7WebSiteAction(string siteId)
        {
            XmlElement action = script.CreateElement("IIS7WebSite");

            RootElement.AppendChild(action);
            action.SetAttribute("siteId", siteId);
        }
コード例 #5
0
        internal static void RegisterDatabaseAction(string connectionString, string name)
        {
            XmlElement action = script.CreateElement("database");

            RootElement.AppendChild(action);
            action.SetAttribute("connectionString", connectionString);
            action.SetAttribute("name", name);
        }
コード例 #6
0
        internal static void RegisterDirectoryBackupAction(string source, string destination)
        {
            XmlElement action = script.CreateElement("directoryBackup");

            RootElement.AppendChild(action);
            action.SetAttribute("source", source);
            action.SetAttribute("destination", destination);
        }
コード例 #7
0
        internal static void RegisterWindowsService(string path, string name)
        {
            XmlElement action = script.CreateElement("WindowsService");

            RootElement.AppendChild(action);
            action.SetAttribute("path", path);
            action.SetAttribute("name", name);
        }
コード例 #8
0
        internal static void RegisterConfigAction(string componentId, string name)
        {
            XmlElement action = script.CreateElement("config");

            RootElement.AppendChild(action);
            action.SetAttribute("key", componentId);
            action.SetAttribute("name", name);
        }
コード例 #9
0
        internal static void RegisterUserAccountAction(string domain, string userName)
        {
            XmlElement action = script.CreateElement("userAccount");

            RootElement.AppendChild(action);
            action.SetAttribute("name", userName);
            action.SetAttribute("domain", domain);
        }
コード例 #10
0
        internal static void RegisterVirtualDirectoryAction(string siteId, string name)
        {
            XmlElement action = script.CreateElement("virtualDirectory");

            RootElement.AppendChild(action);
            action.SetAttribute("siteId", siteId);
            action.SetAttribute("name", name);
        }
コード例 #11
0
        internal static void RegisterDatabaseBackupAction(string connectionString, string name, string bakFile, string position)
        {
            XmlElement action = script.CreateElement("databaseBackup");

            RootElement.AppendChild(action);
            action.SetAttribute("connectionString", connectionString);
            action.SetAttribute("name", name);
            action.SetAttribute("bakFile", bakFile);
            action.SetAttribute("position", position);
        }
コード例 #12
0
ファイル: SvgDocument.cs プロジェクト: wangxin3233/AngleSharp
        protected override void SetTitle(String value)
        {
            var title = RootElement.FindChild <ISvgTitleElement>();

            if (title == null)
            {
                title = new SvgTitleElement(this);
                RootElement.AppendChild(title);
            }

            title.TextContent = value;
        }
コード例 #13
0
ファイル: UEResXWriter.cs プロジェクト: sjb8100/test20180318
        public UEResXWriter(string InPath)
        {
            Filename = InPath;
            Document = new XmlDocument();
            Document.AppendChild(Document.CreateXmlDeclaration("1.0", "utf-8", null));
            RootElement = Document.CreateElement("root");
            Document.AppendChild(RootElement);

            RootElement.AppendChild(CreateEntry("resheader", "resmimetype", "text/microsoft-resx", null));
            RootElement.AppendChild(CreateEntry("resheader", "version", "2.0", null));
            RootElement.AppendChild(CreateEntry("resheader", "reader", typeof(UEResXReader).AssemblyQualifiedName, null));
            RootElement.AppendChild(CreateEntry("resheader", "writer", typeof(UEResXWriter).AssemblyQualifiedName, null));
        }
コード例 #14
0
ファイル: CellView.cs プロジェクト: pietervp/workbooks-1
        protected CellView(HtmlDocument document, string cssClass)
        {
            if (document == null)
            {
                throw new ArgumentNullException(nameof(document));
            }

            Document = document;

            RootElement    = Document.CreateElement("article", cssClass);
            ContentElement = Document.CreateElement("section");
            FooterElement  = Document.CreateElement("footer");

            RootElement.AppendChild(ContentElement);
            RootElement.AppendChild(FooterElement);
        }
コード例 #15
0
ファイル: UEResXWriter.cs プロジェクト: sjb8100/test20180318
 public void AddResource(string InName, string InValue)
 {
     RootElement.AppendChild(CreateEntry("data", InName, InValue, "preserve"));
 }