HtmlHelper.Id(String) Method

Definition

Returns the HTML element Id for the specified expression.

public:
 virtual System::String ^ Id(System::String ^ expression);
public string Id (string expression);
abstract member Id : string -> string
override this.Id : string -> string
Public Function Id (expression As String) As String

Parameters

expression
String

Expression name, relative to the current model.

Returns

A String containing the element Id.

Implements

Applies to