HtmlHelper.Encode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Encode(Object) |
Converts the |
Encode(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
Returns
The HTML-encoded String.
Implements
Applies to
Encode(String)
- Source:
- HtmlHelper.cs
- Source:
- HtmlHelper.cs
- Source:
- HtmlHelper.cs
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
Returns
The HTML-encoded String.
Implements
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for