Export (0) Print
Expand All

ModelMetadataProviders.Current Property

Gets or sets the current ModelMetadataProvider object.

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

'Declaration
Public Shared Property Current As ModelMetadataProvider 
	Get 
	Set
'Usage
Dim value As ModelMetadataProvider 

value = ModelMetadataProviders.Current 

ModelMetadataProviders.Current = value

Property Value

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

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

Show:
© 2014 Microsoft