Export (0) Print
Expand All

ModelMetadata.FromStringExpression Method

Gets the metadata from the expression parameter for the model.

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

'Declaration
Public Shared Function FromStringExpression ( _
	expression As String, _
	viewData As ViewDataDictionary _
) As ModelMetadata
'Usage
Dim expression As String 
Dim viewData As ViewDataDictionary 
Dim returnValue As ModelMetadata 

returnValue = ModelMetadata.FromStringExpression(expression, _
	viewData)

Parameters

expression
Type: System.String
An expression that identifies the model.
viewData
Type: System.Web.Mvc.ViewDataDictionary
The view data dictionary.

Return Value

Type: System.Web.Mvc.ModelMetadata
The metadata for the model.
Show:
© 2014 Microsoft