Show / Hide Table of Contents

    Class ModelMetadataExtensions

    Provides a helper method for Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata to retrieve a property attribute of a given type.
    Inheritance
    Object
    ModelMetadataExtensions
    Namespace: XploRe.AspNetCore.Mvc.ModelBinding
    Assembly: XploRe.AspNetCore.Mvc.dll
    Syntax
    public static class ModelMetadataExtensions : Object

    Methods

    Name Description
    GetPropertyAttribute<T>(ModelMetadata) Retrieves the attribute instance of type T for the property with the name given by the Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata.PropertyName property of the provided Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata instance.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.