This content is archived. See latest version here

Last updated: Mar 31 2014

A content instance that implements EPiServer.Core.IResourcable can have related assets stored in an instance of EPiServer.Core.ContentAssetFolder. Resources stored as content assets are to be seen as exclusive assets for that content instance and hence the resources are not selectable from other content instances.

Example

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 have feedback on this documentation? Send an email to documentation@episerver.com. For development-related questions and discussions, refer to our Forums on https://world.episerver.com/forum/