Share via


ModelValidatingEventArgs Class

 

Provides data for the ModelValidationNode.Validating event.

Namespace:   Microsoft.Web.Mvc.ModelBinding
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  System.EventArgs
    System.ComponentModel.CancelEventArgs
      Microsoft.Web.Mvc.ModelBinding.ModelValidatingEventArgs

Syntax

public sealed class ModelValidatingEventArgs : CancelEventArgs
public ref class ModelValidatingEventArgs sealed : CancelEventArgs
[<Sealed>]
type ModelValidatingEventArgs = 
    class
        inherit CancelEventArgs
    end
Public NotInheritable Class ModelValidatingEventArgs
    Inherits CancelEventArgs

Constructors

Name Description
System_CAPS_pubmethod ModelValidatingEventArgs(ControllerContext, ModelValidationNode)

Initializes a new instance of the ModelValidatingEventArgs class.

Properties

Name Description
System_CAPS_pubproperty Cancel

(Inherited from CancelEventArgs.)

System_CAPS_pubproperty ControllerContext

Gets or sets the controller context.

System_CAPS_pubproperty ParentNode

Gets the parent model validation node.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Web.Mvc.ModelBinding Namespace

Return to top