Share via


MediaFieldValue.FromString method

Creates a MediaFieldValue object from an HTML string representation.

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

Syntax

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

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

Parameters

  • value
    Type: System.String

    A string containing an HTML definition list with the terms containing the property names and the definitions containing the property values.

Return value

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

See also

Reference

MediaFieldValue class

MediaFieldValue members

Microsoft.SharePoint.Publishing.Fields namespace