SPContext.Current vs this.ServerInfo.SharePointSiteCollectionUrl - InfoPath Dev
in

InfoPath Dev

SPContext.Current vs this.ServerInfo.SharePointSiteCollectionUrl

Last post 07-18-2012 04:01 PM by meyerdenney. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-18-2012 04:01 PM

    SPContext.Current vs this.ServerInfo.SharePointSiteCollectionUrl

    When should I use one and not the other? Lately, SPContext.Current has been returning null in the code behind of my InfoPath forms so I have been forced to use this.ServerInfo.SharePointSiteCollectionUrl to create my new SPSite object. What the disadvantages of using this.ServerInfo vs SPContext.Current? I know ServerInfo provides less SharePoint specific information, but as long as I can get my SPWeb object create, I can usually get all the info I need from that.
    Filed under:
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.