共用方式為


SPFieldMultiChoice.RenderFieldValueAsJson method

會傳回指定之的value JSON 格式。

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

Syntax

'宣告
Public Overrides Function RenderFieldValueAsJson ( _
    value As Object _
) As String
'用途
Dim instance As SPFieldMultiChoice
Dim value As Object
Dim returnValue As String

returnValue = instance.RenderFieldValueAsJson(value)
public override string RenderFieldValueAsJson(
    Object value
)

參數

傳回值

Type: System.String
value已轉換成 JSON。

備註

此覆寫包含在引號 ; 個別選擇以方括弧括起、 逗點分隔的字串,以傳回所有選項例如, ["Chicago","Milan","Tokyo"]。

請參閱

參照

SPFieldMultiChoice class

SPFieldMultiChoice members

Microsoft.SharePoint namespace