HtmlHelper.AttributeEncode HtmlHelper.AttributeEncode HtmlHelper.AttributeEncode Method

Definition

Overloads

AttributeEncode(Object) AttributeEncode(Object) AttributeEncode(Object)

Returns an HTML-encoded string that represents the specified object by using a minimal encoding that is suitable only for HTML attributes that are enclosed in quotation marks.

AttributeEncode(String) AttributeEncode(String) AttributeEncode(String)

Returns an HTML-encoded string that represents the specified string by using a minimal encoding that is suitable only for HTML attributes that are enclosed in quotation marks.

AttributeEncode(Object) AttributeEncode(Object) AttributeEncode(Object)

Returns an HTML-encoded string that represents the specified object by using a minimal encoding that is suitable only for HTML attributes that are enclosed in quotation marks.

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

The object to encode.

Returns

An HTML-encoded string that represents the object.

AttributeEncode(String) AttributeEncode(String) AttributeEncode(String)

Returns an HTML-encoded string that represents the specified string by using a minimal encoding that is suitable only for HTML attributes that are enclosed in quotation marks.

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

The string to encode.

Returns

An HTML-encoded string that represents the original string.

Applies to