System.Xml.XmlConvert.VerifyCharData C# (CSharp) Méthode

VerifyCharData() static private méthode

static private VerifyCharData ( string data, ExceptionType exceptionType ) : void
data string
exceptionType ExceptionType
Résultat void
        internal static void VerifyCharData(string data, ExceptionType exceptionType)
        {
            VerifyCharData(data, exceptionType, exceptionType);
        }

Same methods

XmlConvert::VerifyCharData ( char data, int offset, int len, ExceptionType exceptionType ) : void
XmlConvert::VerifyCharData ( string data, ExceptionType invCharExceptionType, ExceptionType invSurrogateExceptionType ) : void

Usage Example

        public override void WriteString(string?text)
        {
            VerifyState(Method.WriteString);
            XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException);
            XmlNode node = _document.CreateTextNode(text);

            AddChild(node, _write);
        }
All Usage Examples Of System.Xml.XmlConvert::VerifyCharData