Table of Contents

Class FieldValueViewModel

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

Represents a view model for a field value in the product catalog.

[KnownType(typeof(List<FieldOptionValueViewModel>))]
[KnownType(typeof(LinkViewModel))]
[KnownType(typeof(ColorViewModel))]
[KnownType(typeof(FileViewModel))]
public class FieldValueViewModel : FillableViewModelBase
Inheritance
FieldValueViewModel
Inherited Members
Extension Methods

Properties

ListType

Gets or sets the list type of the field.

public int ListType { get; set; }

Property Value

int

Name

Gets or sets the name of the field.

public string Name { get; set; }

Property Value

string

SystemName

Gets or sets the system name of the field.

public string SystemName { get; set; }

Property Value

string

Type

Gets or sets the type of the field.

public string Type { get; set; }

Property Value

string

Value

Gets or sets the value of the field.

public object Value { get; set; }

Property Value

object

Methods

ToString()

Returns a string representation of the field value.

public override string ToString()

Returns

string

A string representation of the field value.

Remarks

If the field value is a list of options, it returns a comma-separated string of option names. Otherwise, it converts the field value to a string using the default converter.

To top