Condividi tramite


SPFieldBoolean.GetFieldValueAsText method (Boolean)

Gets the field value as plain text.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

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.Boolean

    true 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.

See also

Reference

SPFieldBoolean class

SPFieldBoolean members

GetFieldValueAsText overload

Microsoft.SharePoint namespace