November Happy Hour will be moved to Thursday December 5th.

Loading...
Area: Optimizely CMS
ARCHIVED This content is retired and no longer maintained. See the latest version here.

Recommended reading 

A content instance that implements EPiServer.Core.IResourcable stores related assets in an instance of EPiServer.Core.ContentAssetFolder. Resources that are stored as content assets are considered exclusive assets for that content instance, and therefore you cannot select them from other content instances. 

The following example shows how to get an existing assets folder, or create one automatically:

     contentAssetHelper = ServiceLocator.Current.GetInstance<ContentAssetHelper>();
     var contentAssetFolder = contentAssetHelper.GetOrCreateAssetFolder(myContentLink);
Do you find this information helpful? Please log in to provide feedback.

Last updated: Sep 21, 2015

Recommended reading