ModelValidationNode Class

 

Provides a container for model validation information.

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

Inheritance Hierarchy

System.Object
  Microsoft.Web.Mvc.ModelBinding.ModelValidationNode

Syntax

public sealed class ModelValidationNode
public ref class ModelValidationNode sealed 
[<Sealed>]
type ModelValidationNode = class end
Public NotInheritable Class ModelValidationNode

Constructors

Name Description
System_CAPS_pubmethod ModelValidationNode(ModelMetadata, String)

Initializes a new instance of the ModelValidationNode class, using the model metadata and state key.

System_CAPS_pubmethod ModelValidationNode(ModelMetadata, String, IEnumerable<ModelValidationNode>)

Initializes a new instance of the ModelValidationNode class, using the model metadata, the model state key and child model-validation nodes.

Properties

Name Description
System_CAPS_pubproperty ChildNodes

Gets the child nodes.

System_CAPS_pubproperty ModelMetadata

Gets the model metadata.

System_CAPS_pubproperty ModelStateKey

Gets the model state key.

System_CAPS_pubproperty SuppressValidation

Gets or sets a value that indicates whether validation should be suppressed.

System_CAPS_pubproperty ValidateAllProperties

Gets or sets a value that indicates whether all properties of the model should be validated.

Methods

Name Description
System_CAPS_pubmethod CombineWith(ModelValidationNode)

Combines the current ModelValidationNode instance with a specified ModelValidationNode instance.

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

System_CAPS_pubmethod Validate(ControllerContext)

Validates the model using the specified controller context.

System_CAPS_pubmethod Validate(ControllerContext, ModelValidationNode)

Validates the model using the specified controller context and parent node.

Events

Name Description
System_CAPS_pubevent Validated

Occurs when the model has been validated.

System_CAPS_pubevent Validating

Occurs when the model is being validated.

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