HtmlHelper.Encode HtmlHelper.Encode HtmlHelper.Encode Method

Definition

Overloads

Encode(Object) Encode(Object) Encode(Object)

Converts the value of the specified object to an HTML-encoded string.

Encode(String) Encode(String) Encode(String)

Converts the specified string to an HTML-encoded string.

Encode(Object) Encode(Object) Encode(Object)

Converts the value of the specified object to an HTML-encoded string.

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

Parameters

value
Object Object Object

The object to encode.

Returns

The HTML-encoded string.

Encode(String) Encode(String) Encode(String)

Converts the specified string to an HTML-encoded string.

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

Parameters

value
String String String

The string to encode.

Returns

The HTML-encoded string.

Applies to