ModelValidationNode Class

Definition

Provides a container for model validation information.

public ref class ModelValidationNode sealed
public sealed class ModelValidationNode
type ModelValidationNode = class
Public NotInheritable Class ModelValidationNode
Inheritance
ModelValidationNode

Constructors

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.

ModelValidationNode(ModelMetadata, String)

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

Properties

ChildNodes

Gets the child nodes.

ModelMetadata

Gets the model metadata.

ModelStateKey

Gets the model state key.

SuppressValidation

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

ValidateAllProperties

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

Methods

CombineWith(ModelValidationNode)

Combines the current ModelValidationNode instance with a specified ModelValidationNode instance.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
Validate(ModelBindingExecutionContext, ModelValidationNode)

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

Validate(ModelBindingExecutionContext)

Validates the model using the specified execution context.

Events

Validated

Occurs when the model has been validated.

Validating

Occurs when the model is being validated.

Applies to