Skip to content
This repository

The enumeration Glass.Sitecore.Mapper.Configuration.SitecoreInfoType is used in conjunction with the attribute SitecoreInfoAttribute to load non-field data about an item such as URL and path. Each enumeration value may have a different return type, it is important that the return type of the property is correct.

Enumeration Values

SitecoreInfoType.ContentPath

Returns the content path of the item as type System.String.

   [SitecoreInfo(SitecoreInfoType.ContentPath)]
   public virtual string ContentPath { get; set; }

SitecoreInfoType.DisplayName

Returns the display name of the item as type System.String.

   [SitecoreInfo(SitecoreInfoType.DisplayName)]
   public virtual string DisplayName{ get; set; }

SitecoreInfoType.FullPath

Returns the full path of the item as type System.String.

   [SitecoreInfo(SitecoreInfoType.FullPath)]
   public virtual string FullPath{ get; set; }

SitecoreInfoType.Key

Returns the key of the item as type System.String.

   [SitecoreInfo(SitecoreInfoType.Key)]
   public virtual string Key{ get; set; }

SitecoreInfoType.MediaUrl

Returns the media URL of the item as type System.String.

   [SitecoreInfo(SitecoreInfoType.MediaUrl)]
   public virtual string MediaUrl{ get; set; }

SitecoreInfoType.Path

Returns the path of the item as type System.String.

   [SitecoreInfo(SitecoreInfoType.Path)]
   public virtual string Path{ get; set; }

SitecoreInfoType.TemplateId

Returns the template ID of the item as type System.Guid.

   [SitecoreInfo(SitecoreInfoType.TemplateId)]
   public virtual Guid TemplateId{ get; set; }

SitecoreInfoType.TemplateName

Returns the template name of the item as type System.String.

   [SitecoreInfo(SitecoreInfoType.TemplateName)]
   public virtual string TemplateName{ get; set; }

SitecoreInfoType.Url

Returns the URL of the item as type System.String.

   [SitecoreInfo(SitecoreInfoType.Url)]
   public virtual string Url{ get; set; }

SitecoreInfoType.Version

Returns the version of the item as type System.Int32.

   [SitecoreInfo(SitecoreInfoType.Version)]
   public virtual int Version{ get; set; }
Something went wrong with that request. Please try again.