Freigeben über


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)

Syntax

'Declaration
Public Shared Function FromStringExpression ( _
    expression As String, _
    viewData As ViewDataDictionary _
) As ModelMetadata
public static ModelMetadata FromStringExpression(
    string expression,
    ViewDataDictionary viewData
)
public:
static ModelMetadata^ FromStringExpression(
    String^ expression, 
    ViewDataDictionary^ viewData
)

Parameters

  • expression
    Type: System.String
    An expression that identifies the model.

Return Value

Type: System.Web.Mvc.ModelMetadata
The metadata for the model.

See Also

Reference

ModelMetadata Class

System.Web.Mvc Namespace