HtmlHelper<TModel>.IdFor<TResult> Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the HTML element Id for the specified expression.
public:
generic <typename TResult>
 virtual System::String ^ IdFor(System::Linq::Expressions::Expression<Func<TModel, TResult> ^> ^ expression);public string IdFor<TResult>(System.Linq.Expressions.Expression<Func<TModel,TResult>> expression);abstract member IdFor : System.Linq.Expressions.Expression<Func<'Model, 'Result>> -> string
override this.IdFor : System.Linq.Expressions.Expression<Func<'Model, 'Result>> -> stringPublic Function IdFor(Of TResult) (expression As Expression(Of Func(Of TModel, TResult))) As StringType Parameters
- TResult
The type of the expression result.
Parameters
- expression
- Expression<Func<TModel,TResult>>
An expression to be evaluated against the current model.
Returns
A String containing the element Id.