SPFieldBoolean.GetFieldValueAsHtml Method (Boolean)

Returns the field value in HTML format in order to render the field value directly on the page.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Shared Function GetFieldValueAsHtml ( _
    data As Boolean _
) As String
'Usage
Dim data As Boolean
Dim returnValue As String

returnValue = SPFieldBoolean.GetFieldValueAsHtml(data)
public static string GetFieldValueAsHtml(
    bool data
)

Parameters

  • data
    Type: System.Boolean

    true if the field contains a Boolean value that represents true; otherwise, false.

Return Value

Type: System.String
A string that contains the converted value object in HTML format.

See Also

Reference

SPFieldBoolean Class

SPFieldBoolean Members

GetFieldValueAsHtml Overload

Microsoft.SharePoint Namespace