TrackingProfileDeserializationException.ValidationEventArgs 属性

定义

获取一个列表,其中包含与此异常关联的验证警告和错误。

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对象,其中包含与此异常关联的验证警告和错误。 默认为空列表。

注解

使用该TrackingProfileSerializer函数XmlReader将 XML 文档反序列化为 .TrackingProfile 收集由 <a0/> 发出的验证错误和警告。 在反序列化过程中的某些点,确定TrackingProfileSerializerXmlReader是否已遇到任何验证错误,如果遇到验证错误,则会TrackingProfileSerializer将这些警告和错误添加到ValidationEventArgs并引发错误TrackingProfileDeserializationException。 此类的所有异常都不会 ValidationEventArgs 设置。

适用于