Dela via


IHtmlHelper.Id(String) Method

Definition

Returns the HTML element Id for the specified expression.

public:
 System::String ^ Id(System::String ^ expression);
public string Id (string expression);
abstract member 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.

Applies to