SPFieldBoolean.GetFieldValueAsText Method (Boolean)
Gets the field value as plain text.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function GetFieldValueAsText ( _
data As Boolean _
) As String
'Usage
Dim data As Boolean
Dim returnValue As String
returnValue = SPFieldBoolean.GetFieldValueAsText(data)
public static string GetFieldValueAsText(
bool data
)
Parameters
data
Type: System.Booleantrue if the field contains a Boolean value that represents true; otherwise, false.
Return Value
Type: System.String
The plain text value.
Remarks
This method returns a localized text value for the Boolean value.