internal static void RegisterRegistryAction(string key) { XmlElement action = script.CreateElement("registry"); RootElement.AppendChild(action); action.SetAttribute("key", key); }
internal static void RegisterDirectoryAction(string path) { XmlElement action = script.CreateElement("directory"); RootElement.AppendChild(action); action.SetAttribute("path", path); }
internal static void RegisterStopIIS7ApplicationPool(string name) { XmlElement action = script.CreateElement("stopIIS7ApplicationPool"); RootElement.AppendChild(action); action.SetAttribute("name", name); }
internal static void RegisterIIS7WebSiteAction(string siteId) { XmlElement action = script.CreateElement("IIS7WebSite"); RootElement.AppendChild(action); action.SetAttribute("siteId", siteId); }
internal static void RegisterDatabaseAction(string connectionString, string name) { XmlElement action = script.CreateElement("database"); RootElement.AppendChild(action); action.SetAttribute("connectionString", connectionString); action.SetAttribute("name", name); }
internal static void RegisterDirectoryBackupAction(string source, string destination) { XmlElement action = script.CreateElement("directoryBackup"); RootElement.AppendChild(action); action.SetAttribute("source", source); action.SetAttribute("destination", destination); }
internal static void RegisterWindowsService(string path, string name) { XmlElement action = script.CreateElement("WindowsService"); RootElement.AppendChild(action); action.SetAttribute("path", path); action.SetAttribute("name", name); }
internal static void RegisterConfigAction(string componentId, string name) { XmlElement action = script.CreateElement("config"); RootElement.AppendChild(action); action.SetAttribute("key", componentId); action.SetAttribute("name", name); }
internal static void RegisterUserAccountAction(string domain, string userName) { XmlElement action = script.CreateElement("userAccount"); RootElement.AppendChild(action); action.SetAttribute("name", userName); action.SetAttribute("domain", domain); }
internal static void RegisterVirtualDirectoryAction(string siteId, string name) { XmlElement action = script.CreateElement("virtualDirectory"); RootElement.AppendChild(action); action.SetAttribute("siteId", siteId); action.SetAttribute("name", name); }
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); }
protected override void SetTitle(String value) { var title = RootElement.FindChild <ISvgTitleElement>(); if (title == null) { title = new SvgTitleElement(this); RootElement.AppendChild(title); } title.TextContent = value; }
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)); }
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); }
public void AddResource(string InName, string InValue) { RootElement.AppendChild(CreateEntry("data", InName, InValue, "preserve")); }