예제 #1
0
		public ElementTarget( ConfigurationAttribute ca )
		{
			XmlNodePath = ca.XmlNodePath;
			KeyPresenceRequirement = ca.KeyPresenceRequirement;
		}
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 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;
 }