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

Class AssociationGroup

Describes a group of associations of a catalog entry.

Inheritance
System.Object
AssociationGroup
Implements
EPiServer.Data.Entity.IReadOnly<AssociationGroup>
EPiServer.Data.Entity.IReadOnly
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.Linking
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class AssociationGroup : IReadOnly<AssociationGroup>, IReadOnly

Constructors

AssociationGroup()

Declaration
public AssociationGroup()

Fields

DefaultName

The default group name.

Declaration
public const string DefaultName = "Default"
Field Value
Type Description
System.String

Properties

Description

Gets or sets the description of the group.

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

IsReadOnly

Indicates whether the current object instance is read-only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean

Name

Gets or sets the name of the group.

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

SortOrder

Gets or sets the sort order of the group.

Declaration
public int SortOrder { get; set; }
Property Value
Type Description
System.Int32

Methods

CreateWritableClone()

Creates a writable copy of the current object.

Declaration
public AssociationGroup CreateWritableClone()
Returns
Type Description
AssociationGroup

A writable copy of the current object.

Remarks

The cloning is a deep-copy.

MakeReadOnly()

Changes the object instance into a read-only object.

Declaration
public void MakeReadOnly()
Remarks

After calling this method, any attempt to change the object instance or any contained object will generate a System.NotSupportedException. I.e. the semantics is "deep read-only".

Note! After setting an object to read-only it is not possible to revert back to read-write mode. You will have to call the CreateWritableClone method to get a copy that can be modified.

ThrowIfReadOnly()

Calls EPiServer.Data.Validator.ValidateNotReadOnly(EPiServer.Data.Entity.IReadOnly) which throws an exception if the item is in read-only mode. Subtypes should call this before accepting any modification to the object.

Declaration
protected void ThrowIfReadOnly()

Implements

EPiServer.Data.Entity.IReadOnly<>
EPiServer.Data.Entity.IReadOnly