BindingExpressionBase.ValidationErrors 屬性

定義

取得 ValidationError 物件的集合,這些物件造成了這個 BindingExpressionBase 執行個體無效。Gets a collection of ValidationError objects that caused this instance of BindingExpressionBase to be invalid.

public:
 virtual property System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Controls::ValidationError ^> ^ ValidationErrors { System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Controls::ValidationError ^> ^ get(); };
public virtual System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Controls.ValidationError> ValidationErrors { get; }
member this.ValidationErrors : System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Controls.ValidationError>
Public Overridable ReadOnly Property ValidationErrors As ReadOnlyCollection(Of ValidationError)

屬性值

ValidationError 物件的集合,這些物件造成了這個 BindingExpressionBase 執行個體無效。A collection of ValidationError objects that caused this instance of BindingExpressionBase to be invalid. 如果沒有錯誤,這個值為 nullThe value is null if there are no errors.

適用於