VerifyNMTOKEN() 공개 정적인 메소드

public static VerifyNMTOKEN ( string name ) : string
name string
리턴 string
예제 #1
0
 public virtual Task WriteNmTokenAsync(string name)
 {
     if (name == null || name.Length == 0)
     {
         throw new ArgumentException(SR.Xml_EmptyName);
     }
     return(WriteStringAsync(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)));
 }
예제 #2
0
파일: XmlWriter.cs 프로젝트: z77ma/runtime
        // Scalar Value Methods

        // Writes out the specified name, ensuring it is a valid NmToken according to the XML specification
        // (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
        public virtual void WriteNmToken(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException(SR.Xml_EmptyName);
            }
            WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException));
        }
예제 #3
0
        // Scalar Value Methods

        // Writes out the specified name, ensuring it is a valid NmToken according to the XML specification
        // (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
        public virtual Task WriteNmTokenAsync(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException(SR.Xml_EmptyName);
            }
            return(WriteStringAsync(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)));
        }
예제 #4
0
        // Scalar Value Methods

        // Writes out the specified name, ensuring it is a valid NmToken according to the XML specification
        // (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
        public virtual void WriteNmToken(string name)
        {
            if (name == null || name.Length == 0)
            {
                throw new ArgumentException(SR.Xml_EmptyName);
            }
            WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException));
        }
 public virtual void WriteNmToken(string name)
 {
     if ((name == null) || (name.Length == 0))
     {
         throw new ArgumentException(Res.GetString("Xml_EmptyName"));
     }
     this.WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException));
 }
예제 #6
0
 public override Task WriteNmTokenAsync(string name)
 {
     if (_checkNames)
     {
         if (name == null || name.Length == 0)
         {
             throw new ArgumentException(SR.Xml_EmptyName);
         }
         XmlConvert.VerifyNMTOKEN(name);
     }
     return(writer.WriteNmTokenAsync(name));
 }
 public override void WriteNmToken(string name)
 {
     if (_checkNames)
     {
         if (name == null || name.Length == 0)
         {
             throw new ArgumentException(SR.Xml_EmptyName);
         }
         XmlConvert.VerifyNMTOKEN(name);
     }
     writer.WriteNmToken(name);
 }
 public override void WriteNmToken(string name)
 {
     if (this.checkNames)
     {
         if ((name == null) || (name.Length == 0))
         {
             throw new ArgumentException(Res.GetString("Xml_EmptyName"));
         }
         XmlConvert.VerifyNMTOKEN(name);
     }
     base.writer.WriteNmToken(name);
 }