Table of Contents

Class MediaViewModel

Namespace
Dynamicweb.Ecommerce.ProductCatalog
Assembly
Dynamicweb.Ecommerce.dll

Represents the information about a media file or URL.

public class MediaViewModel : FillableViewModelBase
Inheritance
MediaViewModel
Inherited Members
Extension Methods

Properties

DisplayName

Gets or sets the media name. E.g. Name.

public string DisplayName { get; set; }

Property Value

string

Keywords

Gets or sets the media keywords. E.g. Keywords.

public string Keywords { get; set; }

Property Value

string

Name

Gets or sets the media identification. E.g. Id, or the file name with extension.

public string Name { get; set; }

Property Value

string

Value

Gets or sets the media path.

public string Value { get; set; }

Property Value

string

Remarks

The possible values are: Value; Relative file path, e.g. "/Files/Docs/Document.pdf"; URL to an external resource like YouTube or Vimeo.

You can use one of the next methods to get know the value type: MediaViewModel.TryGetVideoViewModel - returns true for a video file or link; MediaViewModel.TryGetImageFileViewModel - returns true for an image file; MediaViewModel.TryGetFileViewModel - returns true for any file type.

To top