Content assets and folders
Store exclusive, content-specific assets using IResourceable and ContentAssetFolder.
A content instance that implements EPiServer.Core.IResourceable stores related assets in an EPiServer.Core.ContentAssetFolder instance. Resources stored as content assets are exclusive to that content instance: other content instances cannot select them.
The following example gets an existing assets folder or creates one automatically:
contentAssetHelper = ServiceLocator.Current.GetInstance<ContentAssetHelper>();
var contentAssetFolder = contentAssetHelper.GetOrCreateAssetFolder(myContentLink);Updated 18 days ago
