Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.Booleantrue 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.