DefaultTypeNameBasedExcludeFilter Class

Summary

Provides an implementation of [Microsoft.AspNet.Mvc.ModelBinding.Validation.IExcludeTypeValidationFilter](Microsoft.AspNet.Mvc.ModelBinding.Validation.IExcludeTypeValidationFilter.yml) which can filter based on a type full name.

Syntax

public class DefaultTypeNameBasedExcludeFilter : IExcludeTypeValidationFilter

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.Validation.DefaultTypeNameBasedExcludeFilter

Constructors

DefaultTypeNameBasedExcludeFilter(System.String)

Creates a new instance of [Microsoft.AspNet.Mvc.ModelBinding.Validation.DefaultTypeNameBasedExcludeFilter](Microsoft.AspNet.Mvc.ModelBinding.Validation.DefaultTypeNameBasedExcludeFilter.yml)

Arguments:
  • typeFullName (System.String) – Fully qualified name of the type which needs to be excluded.
public DefaultTypeNameBasedExcludeFilter(string typeFullName)

Properties

ExcludedTypeName()

Gets the type full name which is excluded from validation.

Return type:System.String
public string ExcludedTypeName { get; }

Methods

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

System.Boolean

public bool IsTypeExcluded(Type propertyType)