SimpleTypesExcludeFilter Class

Summary

Identifies the simple types that the default model binding validation will exclude.

Syntax

public class SimpleTypesExcludeFilter : IExcludeTypeValidationFilter

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.Validation.SimpleTypesExcludeFilter

Methods

IsSimpleType(System.Type)

Returns true if the given type is the underlying types that [Microsoft.AspNet.Mvc.ModelBinding.Validation.SimpleTypesExcludeFilter.IsTypeExcluded(System.Type)](Microsoft.AspNet.Mvc.ModelBinding.Validation.SimpleTypesExcludeFilter.yml) will exclude.

Arguments:
  • type (System.Type) –
Return type:

System.Boolean

protected virtual bool IsSimpleType(Type type)
IsTypeExcluded(System.Type)

Returns true if the given type will be excluded from the default model validation.

Arguments:
  • type (System.Type) –
Return type:

System.Boolean

public bool IsTypeExcluded(Type type)