London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
I don't think there are any differens, but I would use the site definition one.
I must check the code to verify how they work (maby someone else will do it before me)
Hi
There is no difference in the functionality (I just did check the code:)). ContentReference.StartPage uses the SiteDefinition. One benefit of SiteDefinition (but not SiteDefinition.Current) is that it can be used as a service in dependency injection, so you would not need any static access that could be a problem when writing unit tests.
Regards
Per Gunsarfs
Hi,
Is there a difference between these 2? If so which one should I use?