Class ContentGuidAdmin
Represents the database access to get catalog content guid from database.
This class supports the EPiServer Commerce infrastructure and is not intended to be used directly from your code.
Inheritance
System.Object
ContentGuidAdmin
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: Mediachase.Commerce.Catalog.Data
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
[Obsolete("This type is no longer used. Will remain at least until Aug 2020")]
public class ContentGuidAdmin
Constructors
ContentGuidAdmin(ReferenceConverter)
Initializes a new instance of the ContentGuidAdmin class.
Declaration
public ContentGuidAdmin(ReferenceConverter referenceConverter)
Parameters
Type | Name | Description |
---|---|---|
ReferenceConverter | referenceConverter | The reference converter. |
Methods
ResolveContentGuid(ContentReference)
Gets content Guid from contentLink
.
Declaration
public virtual Guid ResolveContentGuid(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | contentLink | The content link. |
Returns
Type | Description |
---|---|
System.Guid | The Guid for the specifed content, or Guid.Empty if the content guid is not found |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The input content link is not CatalogEntry, CatalogNode or Catalog. |
ResolveContentLink(Guid)
Gets content link from contentGuid
.
Declaration
public virtual ContentReference ResolveContentLink(Guid contentGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contentGuid | The content unique identifier. |
Returns
Type | Description |
---|---|
EPiServer.Core.ContentReference | Content link, or empty reference if the content link is not found |