public ElementTarget( ConfigurationAttribute ca ) { XmlNodePath = ca.XmlNodePath; KeyPresenceRequirement = ca.KeyPresenceRequirement; }
/// <summary> /// Construtor. /// </summary> /// <param name="xmlNodePath">Nome do nodo que o atributo representa.</param> /// <param name="keyPresenceRequirement">Informação sobre a presença do nodo no arquivo XML.</param> /// <param name="requiredParameters">Número de parametros que o método requer.</param> public ConfigurationAttribute(string xmlNodePath, ConfigKeyPresence keyPresenceRequirement, int requiredParameters) : this(xmlNodePath, keyPresenceRequirement) { _requiredParameters = requiredParameters; }
/// <summary> /// Construtor. /// </summary> /// <param name="xmlNodePath">Nome do nodo que o atributo representa.</param> /// <param name="keyPresenceRequirement">Informação sobre a presença do nodo no arquivo XML.</param> public ConfigurationAttribute(string xmlNodePath, ConfigKeyPresence keyPresenceRequirement) : this(xmlNodePath) { _keyPresenceRequirement = keyPresenceRequirement; }
public ElementTarget(ConfigurationAttribute ca) { XmlNodePath = ca.XmlNodePath; KeyPresenceRequirement = ca.KeyPresenceRequirement; }
/// <summary> /// Creates a new ConfigurationAttribute using the given path as the XPath /// to the target node in the configuration tree. The node must be present or an /// exception will be raised. /// </summary> /// <param name="xmlNodePath">The XPath to the node. This should always start with the /// root node "Gentle.Framework" (this is also true when the .NET configuration file /// is used instead of Gentle.config).</param> /// <param name="keyPresenceRequirement">The presence requirement of the specified key. /// Refer to <see cref="ConfigKeyPresence"/> for the available options.</param> public ConfigurationAttribute( string xmlNodePath, ConfigKeyPresence keyPresenceRequirement ) { this.xmlNodePath = xmlNodePath; this.keyPresenceRequirement = keyPresenceRequirement; }
/// <summary> /// Creates a new ConfigurationAttribute using the given path as the XPath /// to the target node in the configuration tree. The node must be present or an /// exception will be raised. /// </summary> /// <param name="xmlNodePath">The XPath to the node. This should always start with the /// root node "Gentle.Framework" (this is also true when the .NET configuration file /// is used instead of Gentle.config).</param> /// <param name="keyPresenceRequirement">The presence requirement of the specified key. /// Refer to <see cref="ConfigKeyPresence"/> for the available options.</param> public ConfigurationAttribute(string xmlNodePath, ConfigKeyPresence keyPresenceRequirement) { this.xmlNodePath = xmlNodePath; this.keyPresenceRequirement = keyPresenceRequirement; }