Show / Hide Table of Contents

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.Controls.dll
Syntax
public class DatePickerDateValidationErrorEventArgs : EventArgs

Constructors

| Improve this Doc View Source

DatePickerDateValidationErrorEventArgs(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 Source

Exception

Gets 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.

| Improve this Doc View Source

Text

Gets 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.

| Improve this Doc View Source

ThrowException

Gets or sets a value indicating 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.

  • Improve this Doc
  • View Source