Class ModelMetadataExtensions
Provides a helper method for Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata to retrieve a property attribute of a given type.
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.
|