Is there built-in method to tell if specific URL belongs to this SPWeb or other SPWeb?
Posted
by Janis Veinbergs
on Stack Overflow
See other posts from Stack Overflow
or by Janis Veinbergs
Published on 2010-03-18T10:11:50Z
Indexed on
2010/03/18
11:01 UTC
Read the original article
Hit count: 495
Hello.
I have a list of urls (content type usage url's). Now, content types are deployed across web's. I need to loop those content types and do some actions in each list, but opening new SPWeb instance every loop is too resource intensive.
Is there built-in method to tell me if this URL belongs to certain SPWeb object?
Example:
SPWeb's may be
With content type usage links like:
- /web2/Pages
- /web2/Lists/Tasks
- /web2/Lists/Documents
- /web2/subweb1/Lists/Tasks
- ...
As you can see, for first 3 usages i don't need to open up new SPWeb
© Stack Overflow or respective owner