共用方式為


DefaultHtmlGenerator.GenerateLink(String, String, Object) 方法

定義

產生連結。

protected:
 virtual Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateLink(System::String ^ linkText, System::String ^ url, System::Object ^ htmlAttributes);
protected virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateLink (string linkText, string url, object htmlAttributes);
abstract member GenerateLink : string * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
override this.GenerateLink : string * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Protected Overridable Function GenerateLink (linkText As String, url As String, htmlAttributes As Object) As TagBuilder

參數

linkText
String

連結的文字。

url
String

連結的 URL。

htmlAttributes
Object

HTML 屬性。

傳回

TagBuilder

適用於