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>

IList 物件的 ValidationEventArgs 清單,其中包含與此例外狀況關聯的驗證警告和錯誤。 預設值是空白清單。

備註

TrackingProfileSerializer 會使用 XmlReader 將 XML 文件還原序列化到 TrackingProfile 中。 TrackingProfileSerializer 會收集由 XmlReader 發出的驗證錯誤和警告。 在還原序列化期間的特定點上,TrackingProfileSerializer 會判斷 XmlReader 是否有遇到任何驗證錯誤,如果有,TrackingProfileSerializer 會將這些警告和錯誤加入至 ValidationEventArgs 中,並且擲回 TrackingProfileDeserializationException。 並非這個類別的所有例外狀況都會設定 ValidationEventArgs

適用於