Search code examples
.netsharepointsharepoint-2010sharepoint-api

Sharepoint 2010. How to check and get current zone


Sharepoint central administration contains possibility to configure URL for different zones (Alternate access mappings).

Ex:

  • Default Zone

  • Etranet Zone

Can i with some sharepoint API determine and get current zone for user?


Solution

  • found how to determine current zone:

         SPContext.Current.Site.Zone