Class AssetUrlConventions

Sets default group on content types, which implements IAssetContainer

Inheritance
System.Object
AssetUrlConventions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Catalog
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class AssetUrlConventions

Constructors

AssetUrlConventions()

Initializes a new instance of the AssetUrlConventions class.

Declaration
public AssetUrlConventions()

Properties

DefaultAssetUrl

Gets or sets the default asset URL.

Declaration
public virtual string DefaultAssetUrl { get; set; }
Property Value
Type Description
System.String

The default asset URL.

Methods

AddDefaultGroup<T>(String)

Adds a group as default group for a specific content type.

Declaration
public virtual void AddDefaultGroup<T>(string groupName)
    where T : IAssetContainer
Parameters
Type Name Description
System.String groupName

Name of the group.

Type Parameters
Name Description
T
Exceptions
Type Condition
System.InvalidOperationException

GetDefaultGroup(IAssetContainer)

Gets the default group for the specific content.

Declaration
public virtual string GetDefaultGroup(IAssetContainer content)
Parameters
Type Name Description
IAssetContainer content

The content.

Returns
Type Description
System.String