TrackingProfileDeserializationException.ValidationEventArgs 属性
定义
获取一个列表,该列表包含与此异常关联的验证警告和错误。Gets a list that contains validation warnings and errors associated with this exception.
public:
property System::Collections::Generic::IList<System::Xml::Schema::ValidationEventArgs ^> ^ ValidationEventArgs { System::Collections::Generic::IList<System::Xml::Schema::ValidationEventArgs ^> ^ get(); };
public System.Collections.Generic.IList<System.Xml.Schema.ValidationEventArgs> ValidationEventArgs { get; }
member this.ValidationEventArgs : System.Collections.Generic.IList<System.Xml.Schema.ValidationEventArgs>
Public ReadOnly Property ValidationEventArgs As IList(Of ValidationEventArgs)
属性值
IList 对象的 ValidationEventArgs,其中包含与此异常关联的验证警告和错误。A IList of ValidationEventArgs objects that contains validation warnings and errors associated with this exception. 默认为空列表。The default is an empty list.
注解
TrackingProfileSerializer 使用 XmlReader 将 XML 文档反序列化为 TrackingProfile。The TrackingProfileSerializer uses an XmlReader to deserialize an XML document into a TrackingProfile. TrackingProfileSerializer 收集 XmlReader 发出的验证错误和警告。The TrackingProfileSerializer collects validation errors and warnings emitted by the XmlReader. 在反序列化过程中的某些点,TrackingProfileSerializer 将确定 XmlReader 是否遇到了任何验证错误,并且,如果遇到了验证错误,TrackingProfileSerializer 会将这些警告和错误添加到 ValidationEventArgs,并引发 TrackingProfileDeserializationException。At certain points during deserialization, the TrackingProfileSerializer determines whether the XmlReader has encountered any validation errors, and, if it has, the TrackingProfileSerializer adds these warnings and errors to ValidationEventArgs and throws a TrackingProfileDeserializationException. 并非此类的所有异常都将设置 ValidationEventArgs。Not all exceptions of this class will have ValidationEventArgs set.