Share via


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)

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