Microsoft.Protocols.TestSuites.Common.ActiveSyncClient.ValidationCallBack C# (CSharp) Method

ValidationCallBack() private method

The callback method that will handle XML schema validation events.
private ValidationCallBack ( object sender, ValidationEventArgs args ) : void
sender object The source of the event.
args System.Xml.Schema.ValidationEventArgs A ValidationEventArgs containing the event data.
return void
        private void ValidationCallBack(object sender, ValidationEventArgs args)
        {
            if (args.Severity == XmlSeverityType.Error)
            {
                this.xmlValidationErrors.Add(args);
            }
            else
            {
                this.xmlValidationWarnings.Add(args);
            }
        }
        #endregion