HtmlHelper.AttributeEncode メソッド

定義

オーバーロード

AttributeEncode(Object)

指定された属性値を HTML エンコードされた文字列に変換します。

AttributeEncode(String)

指定された属性値を HTML エンコードされた文字列に変換します。

AttributeEncode(Object)

指定された属性値を HTML エンコードされた文字列に変換します。

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

パラメーター

value
Object

エンコードするオブジェクト。

戻り値

HTML エンコードされた文字列。 値パラメーターが null または空の場合、このメソッドは空の文字列を返します。

適用対象

AttributeEncode(String)

指定された属性値を HTML エンコードされた文字列に変換します。

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

パラメーター

value
String

エンコードする文字列。

戻り値

HTML エンコードされた文字列。 値パラメーターが null または空の場合、このメソッドは空の文字列を返します。

適用対象