Class DatePickerDateValidationErrorEventArgs
Provides data for the DateValidationError event.
Inheritance
System.Object
System.EventArgs
DatePickerDateValidationErrorEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
[NotImplemented]
public class DatePickerDateValidationErrorEventArgs : EventArgs
Constructors
| Improve this Doc View SourceDatePickerDateValidationErrorEventArgs(Exception, String)
Initializes a new instance of the DatePickerDateValidationErrorEventArgs class.
Declaration
public DatePickerDateValidationErrorEventArgs(Exception exception, string text)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The initial exception from the DateValidationError event. |
System.String | text | The text that caused the DateValidationError event. |
Properties
| Improve this Doc View SourceException
Gets or sets the initial exception associated with the DateValidationError event.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception | The exception associated with the validation failure. |
Text
Gets or sets the text that caused the DateValidationError event.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
System.String | The text that caused the validation failure. |
ThrowException
Gets or sets a value that indicates whether Exception should be thrown.
Declaration
public bool ThrowException { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the exception should be thrown; otherwise, false. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If set to true and Exception is null. |