Aracılığıyla paylaş


HtmlHelper.AttributeEncode Yöntem

Tanım

Aşırı Yüklemeler

AttributeEncode(Object)

Belirtilen öznitelik değerini HTML ile kodlanmış bir dizeye dönüştürür.

AttributeEncode(String)

Belirtilen öznitelik değerini HTML ile kodlanmış bir dizeye dönüştürür.

AttributeEncode(Object)

Belirtilen öznitelik değerini HTML ile kodlanmış bir dizeye dönüştürür.

public string AttributeEncode(object value);
member this.AttributeEncode : obj -> string
Public Function AttributeEncode (value As Object) As String

Parametreler

value
Object

Kodlanan nesne.

Döndürülenler

HTML ile kodlanmış dize. Değer parametresi null veya boşsa, bu yöntem boş bir dize döndürür.

Şunlara uygulanır

AttributeEncode(String)

Belirtilen öznitelik değerini HTML ile kodlanmış bir dizeye dönüştürür.

public string AttributeEncode(string value);
member this.AttributeEncode : string -> string
Public Function AttributeEncode (value As String) As String

Parametreler

value
String

Kodlanacak dize.

Döndürülenler

HTML ile kodlanmış dize. Değer parametresi null veya boşsa, bu yöntem boş bir dize döndürür.

Şunlara uygulanır