Re: How to get top-level site collections names programmatically



I think this might help ...

http://blogs.msdn.com/krichie/archive/2005/05/17/418683.aspx

Steven


On 19/5/05 10:23, in article
1116494628.335168.13980@xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
"paolo_paganotto@xxxxxxxx" <paolo_paganotto@xxxxxxxx> wrote:

> Hi everybody,
>
> I'd be glad if someone could solve my problem.
> I need to get the names of the top level site collections names;
> suppose I've created the managed paths "path1/" and "path2/", I'd like
> to get programmatically the array "sites","path1","path2", as it is
> when creating a new site: SharePoint shows a combobox with the top
> level site collection names, followed by "/" and the textbox where you
> put the name.
> The collection of SPSites returned by the SPVirtualServer object
> returns all the sites below these collections, included the ones under
> "personal" and itn't really what I need.
>
> I've looked around for it, without success.
>
> Thanx a lot in advance,
>
> Paolo
>

.



Relevant Pages