Share via


ModelValidationNode Class

Provides a container for model validation information.

Inheritance Hierarchy

System.Object
  System.Web.Http.Validation.ModelValidationNode

Namespace:  System.Web.Http.Validation
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public NotInheritable Class ModelValidationNode
'Usage
Dim instance As ModelValidationNode
public sealed class ModelValidationNode
public ref class ModelValidationNode sealed
[<SealedAttribute>]
type ModelValidationNode =  class end
public final class ModelValidationNode

The ModelValidationNode type exposes the following members.

Constructors

  Name Description
Public method ModelValidationNode(ModelMetadata, String) Initializes a new instance of the ModelValidationNode class, using the model metadata and state key.
Public method 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.

Top

Properties

  Name Description
Public property ChildNodes Gets or sets the child nodes.
Public property ModelMetadata Gets or sets the model metadata.
Public property ModelStateKey Gets or sets the model state key.
Public property SuppressValidation Gets or sets a value that indicates whether validation should be suppressed.
Public property ValidateAllProperties Gets or sets a value that indicates whether all properties of the model should be validated.

Top

Methods

  Name Description
Public method CombineWith Combines the current ModelValidationNode instance with a specified ModelValidationNode instance.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Validate(HttpActionContext) Validates the model using the specified execution context.
Public method Validate(HttpActionContext, ModelValidationNode) Validates the model using the specified execution context and parent node.

Top

Events

  Name Description
Public event Validated Occurs when the model has been validated.
Public event Validating Occurs when the model is being validated.

Top

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

Reference

System.Web.Http.Validation Namespace