locked
Better ways- SPSite.AllWebs usage RRS feed

  • Question

  • Hi All,


    I am currently using the following code to check if the spweb is there based on the name (sYear) if it is available then i am doing some login . I am sure that oSPSite.AllWebs will surely have performance issues if i have huge webs? Any better way to do this ? THanks in advance!!!

    //Get the test center webcollection object
    oWebCollection = oSPSite.AllWebs("Sites/Test/TestCenter/").Webs()

    //
    If Not oSPSite.AllWebs("Sites/Test/TestCenter/").Webs(sYear).Exists() Then

    'Do something

    End If

    Thanks,
    Raj
    Thursday, December 18, 2008 3:13 PM

Answers

All replies