Try our conversational search powered by Generative AI!

EPiServer property: get attribute of property?



i am trying to get the attributes of my properties:


XXXPageBase : PageData

[Display(Name = "My Property 1", Description = "Property One", Order = 100, GroupName = Global.GroupNames.Specialized)]
public virtual string MyProp { get; set; }

And then on Published event:
public class CustomizedRenderingInitialization : IInitializableModule


private void Events_PublishingContent(object sender, ContentEventArgs e)
if (e.Content is XXXPageBase )
var page = e.Content as XXXPageBase ;

????How do i get the attribute of property: MyProp ????

I would like to get hold of the Description and UiHint value


Aug 02, 2016 15:14

You might get some help from this blog post:

Aug 02, 2016 15:35
Aug 02, 2016 15:37

Lovely guys, thank you.

I was doing it all wrong. Trying to get the attribute from page.Property (the property collection ).

Once again thanks alot 

Aug 02, 2016 15:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.