Another possible way to do this is to use the SPSite
Owner
property. This will give you the SPUser
object, which is usually preferred. This property corresponds to the "Site Owner" property, which can be configured in the Central Administration in the "Change Site Collection Administrator" section. However, keep in mind that since this can be configured, it should not be trusted as the absolute source of knowledge whose site you have on my site.
Nacht source share