Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Setting value of [SelectMany] property programmatically

$
0
0

I've a string property on my Page with the [SelectMany] attribute, and I need to create the page and fill the property programmatically. 

    [CultureSpecific]
    [SelectMany(SelectionFactoryType = typeof(MyItemsSelectionFactory))]
    public virtual string MyItems { get; set; }

at the moment I'm using the following for setting the value of [SelectOne] properties...

    myObj.MyItem = "99" // where 99 == ContentReference.ID of target page

which works ok, but how do i set multiple values at once?

EPiServer.Shell.ObjectEditing.SelectManyAttribute


Viewing all articles
Browse latest Browse all 8020

Trending Articles