Dynamicweb 8 Documentation
FieldOption Class
Members  Example 

Represents a single field option.
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class FieldOption 
[SerializableAttribute()] 
public class FieldOption 
Example
public class FieldOptionHandler
{
   public string AddOption(string fieldID, string title, string value)
   {
       FieldOption opt = new FieldOption();

       opt.FieldID = fieldID;
       opt.Sort = FieldOption.MaximumSort(FieldID) + 1;
       opt.Title = title;
       opt.Value = value;
       opt.IsDefault = false;
       
       opt.Save();        
 
       return opt.ID;
   }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Products.FieldOption

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FieldOption Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback