다음을 통해 공유


JsonUtility.EncodeFunctionCall Method

Returns a JavaScript Object Notation (JSON) string that, when evaluated in ECMAScript (JScript, JavaScript) by the SP.JsGrid.Deserializer.DeserializeFromJson method will result in the function specified being called with the given arguments.

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

Syntax

'Declaration
Public Shared Function EncodeFunctionCall ( _
    name As String, _
    args As IEnumerable(Of String) _
) As String
'Usage
Dim name As String
Dim args As IEnumerable(Of String)
Dim returnValue As String

returnValue = JsonUtility.EncodeFunctionCall(name, _
    args)
public static string EncodeFunctionCall(
    string name,
    IEnumerable<string> args
)

Parameters

Return Value

Type: System.String
A String representing the encoded function.

Remarks

Returns null if name is null.

See Also

Reference

JsonUtility Class

JsonUtility Members

Microsoft.SharePoint.JsonUtilities Namespace