Share via


FieldProperty.Encode Property

Gets or sets a value that indicates whether the property is rendered as plain text or as HTML code.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property Encode As String
    Get
    Set
'Usage
Dim instance As FieldProperty
Dim value As String

value = instance.Encode

instance.Encode = value
public string Encode { get; set; }

Property Value

Type: System.String
A String which specifies whether or not the property is rendered as simple text or as HTML code.

Remarks

If the value is "HtmlEncodeAllowSimpleTextFormatting", the property is rendered as simple text as explained in the topic for the HtmlEncodeAllowSimpleTextFormatting(String, TextWriter) method; otherwise, it is rendered as HTML code by the HtmlEncode(String, TextWriter) method.

See Also

Reference

FieldProperty Class

FieldProperty Members

Microsoft.SharePoint.WebControls Namespace