Dela via


HtmlHelper.Encode Method

Definition

Overloads

Encode(Object)

Converts the value to an HTML-encoded String.

Encode(String)

Converts the specified String to an HTML-encoded String.

Encode(Object)

Source:
HtmlHelper.cs
Source:
HtmlHelper.cs
Source:
HtmlHelper.cs

Converts the value to an HTML-encoded String.

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

Parameters

value
Object

The Object to encode.

Returns

The HTML-encoded String.

Implements

Applies to

Encode(String)

Source:
HtmlHelper.cs
Source:
HtmlHelper.cs
Source:
HtmlHelper.cs

Converts the specified String to an HTML-encoded String.

public:
 virtual System::String ^ Encode(System::String ^ value);
public string Encode (string value);
abstract member Encode : string -> string
override this.Encode : string -> string
Public Function Encode (value As String) As String

Parameters

value
String

The String to encode.

Returns

The HTML-encoded String.

Implements

Applies to