Show / Hide Table of Contents

    Class TrimStringModelBinderProvider

    Automatically trims whitespace from String values that are bound by this Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider.

    Apply the NoTrimAttribute attribute to properties to exclude them from being bound by this provider.

    The model binder is activated by inserting a TrimStringModelBinderProvider instance into the ASP.NET MVC model binder providers list.

    Inheritance
    Object
    TrimStringModelBinderProvider
    Implements
    Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider
    Namespace: XploRe.AspNetCore.Mvc.ModelBinding
    Assembly: XploRe.AspNetCore.Mvc.dll
    Syntax
    public class TrimStringModelBinderProvider : Object, IModelBinderProvider

    Constructors

    Name Description
    TrimStringModelBinderProvider()

    Methods

    Name Description
    GetBinder(ModelBinderProviderContext)
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.