Compartilhar via


ModelMetadataProviders.Current Property

Gets or sets the current ModelMetadataProvider object.

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

Syntax

'Declaration
Public Shared Property Current As ModelMetadataProvider
    Get
    Set
public static ModelMetadataProvider Current { get; set; }
public:
static property ModelMetadataProvider^ Current {
    ModelMetadataProvider^ get ();
    void set (ModelMetadataProvider^ value);
}

Property Value

Type: System.Web.Mvc.ModelMetadataProvider
The current ModelMetadataProvider object.

Remarks

If this property is set to null reference (Nothing in Visual Basic), Current is set to the EmptyModelMetadataProvider instance.

See Also

Reference

ModelMetadataProviders Class

System.Web.Mvc Namespace