共用方式為


SPFieldBoolean.GetFieldValueAsText method (Boolean)

取得欄位值為純文字。

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

Syntax

'宣告
Public Shared Function GetFieldValueAsText ( _
    data As Boolean _
) As String
'用途
Dim data As Boolean
Dim returnValue As String

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

參數

  • data
    Type: System.Boolean

    true如果欄位會包含布林值,表示為 true。否則, false。

傳回值

Type: System.String
純文字值。

備註

這個方法會傳回布林值的當地語系化的文字值。

請參閱

參照

SPFieldBoolean class

SPFieldBoolean members

GetFieldValueAsText overload

Microsoft.SharePoint namespace