MediaFieldValue members

Represents a field value for media source and display settings.

The MediaFieldValue type exposes the following members.

Constructors

  Name Description
Public method MediaFieldValue Initializes a new instance of a MediaFieldValue object.

Top

Properties

  Name Description
Public property AutoPlay Gets or sets a Boolean value that indicates whether the media should play automatically once the page has loaded.
Public property ConfigureFromContext Gets or sets whether the media player must configure its media and related properties based on the context of the current SPListItem object.
Public property DisplayMode Gets or sets the MediaDisplayMode enumeration that represents the display mode in which to start the media player.
Public property InlineHeight Gets or sets the height of the media player while it is being displayed inline with the rest of the page.
Public property InlineWidth Gets or sets the width of the media player while it is being displayed inline with the rest of the page.
Public property Loop Gets or sets a Boolean value that indicates whether the media should restart automatically upon playing to completion.
Public property MediaSource Gets or sets the URL reference to the media.
Public property PreviewImageSource Gets or sets a URL reference to the media preview image.
Public property ShowEmbedControl Gets or sets whether the media player should display the control for embedding the selected media.
Public property TemplateSource Gets or sets a URL reference to an Extensible Application Markup Language (XAML) document containing a ControlTemplate definition used as the media player's style or skin.
Public property Title Gets or sets the title of the media.
Public property VideoSetSource Gets or sets the URL reference to the VideoSet object that contains the media to be played.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public methodStatic member FromJsonString Creates a MediaFieldValue object from a JavaScript Object Notation (JSON) string representation.
Public methodStatic member FromString Creates a MediaFieldValue object from an HTML string representation.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Serializes the field value as an HTML definition list. (Overrides Object.ToString().)

Top

See also

Reference

MediaFieldValue class

Microsoft.SharePoint.Publishing.Fields namespace