Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IModelNameProvider Interface

.NET Framework 4.6 and 4.5

Provides a way to specify an alternate name to use for model binding instead of using the parameter name.

Namespace:  System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

public interface IModelNameProvider

The IModelNameProvider type exposes the following members.

  NameDescription
Public methodGetModelNameWhen implemented in a class, gets the model name.
Top

This interface is implemented by custom value-provider attributes that must have the ability to specify a value-provider key that is different from the parameter name.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft