Share via


MediaFieldValue.FromJsonString method

Creates a MediaFieldValue object from a JavaScript Object Notation (JSON) string representation.

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

Syntax

'Declaration
Public Shared Function FromJsonString ( _
    value As String _
) As MediaFieldValue
'Usage
Dim value As String
Dim returnValue As MediaFieldValue

returnValue = MediaFieldValue.FromJsonString(value)
public static MediaFieldValue FromJsonString(
    string value
)

Parameters

  • value
    Type: System.String

    A string containing a JSON object definition.

Return value

Type: Microsoft.SharePoint.Publishing.Fields.MediaFieldValue
A MediaFieldValue object with the property values specified by the JSON input string.

See also

Reference

MediaFieldValue class

MediaFieldValue members

Microsoft.SharePoint.Publishing.Fields namespace