Compartilhar via


MediaFieldValue Members

Include Protected Members
Include Inherited 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 whether the media should play automatically once the page has loaded.
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 being displayed inline with the rest of the page.
Public property InlineWidth Gets or sets the width of the media player while being display inline with the rest of the page.
Public property Loop Gets or sets 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 TemplateSource Gets or sets a URL reference to a Extensible Application Markup Language (XAML) document containing a ControlTemplate definition to be used as the media player's style or skin.
Public property Title Gets or sets the title of the media.

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