ModelMetadataProviders.Current Property


Gets or sets the current ModelMetadataProvider object.

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


public static ModelMetadataProvider Current { get; set; }
property ModelMetadataProvider^ Current {
    static ModelMetadataProvider^ get();
    static void set(ModelMetadataProvider^ value);
static member Current : ModelMetadataProvider with get, set
Public Shared Property Current As ModelMetadataProvider

Property Value

Type: System.Web.Mvc.ModelMetadataProvider

The current ModelMetadataProvider object.


If this property is set to null, Current is set to the EmptyModelMetadataProvider instance.

See Also

ModelMetadataProviders Class
System.Web.Mvc Namespace

Return to top