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
name
Type: System.StringThe name of the function.
args
Type: System.Collections.Generic.IEnumerable<String>The arguments to the function. The arguments cannot be a null reference (Nothing in Visual Basic).
Return Value
Type: System.String
A String representing the encoded function.
Remarks
Returns null if name is null.