GetNamespaceUri() публичный Метод

Return the namespaceuri for the given prefixname.
public GetNamespaceUri ( string prefix ) : string
prefix string The prefixname.
Результат string
Пример #1
0
 /// <summary>
 /// Creates the node.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="prefix">The prefix.</param>
 /// <param name="document">The prefix.</param>
 /// <returns>The XmlNode</returns>
 public XmlNode CreateNode(string name, string prefix, TextDocument document)
 {
     try
     {
         string nuri = document.GetNamespaceUri(prefix);
         return(this.Styles.CreateElement(prefix, name, nuri));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Пример #2
0
        /// <summary>
        /// Creates the node.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="prefix">The prefix.</param>
        /// <param name="document">The prefix.</param>
        /// <returns>The XmlNode</returns>
        public XmlNode CreateNode(string name, string prefix, TextDocument document)
        {
            string nuri = document.GetNamespaceUri(prefix);

            return(this.Styles.CreateElement(prefix, name, nuri));
        }
Пример #3
0
 /// <summary>
 /// Creates the node.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="prefix">The prefix.</param>
 /// <param name="document">The prefix.</param>
 /// <returns>The XmlNode</returns>
 public XmlNode CreateNode(string name, string prefix, TextDocument document)
 {
     try
     {
         string nuri = document.GetNamespaceUri(prefix);
         return this.Styles.CreateElement(prefix, name, nuri);
     }
     catch(Exception ex)
     {
         throw;
     }
 }
Пример #4
0
		/// <summary>
		/// Creates the node.
		/// </summary>
		/// <param name="name">The name.</param>
		/// <param name="prefix">The prefix.</param>
		/// <param name="document">The prefix.</param>
		/// <returns>The XmlNode</returns>
		public XmlNode CreateNode(string name, string prefix, TextDocument document)
		{
			string nuri = document.GetNamespaceUri(prefix);
			return this.Styles.CreateElement(prefix, name, nuri);
		}