My question is the same as the title:
How can I determine programmatically am in MySites?
|
My question is the same as the title: How can I determine programmatically am in MySites? |
||||
|
|
|
Check the WebTemplate property of the current SPWeb, if it is SPSMSITEHOST#0, it is a MySite host. You can use Get-SPWebTemplate powershell command in SharePoint 2010 Management Shell to see list of out of the box web templates. |
|||
|
|