Project reference?

Nov 16, 2009 at 7:23 PM

How do you add this to your sharepoint project?

On the home page, there is an example of using this in code:

Here is a code for retrieving the property value (ConnectionString) from SPSite


string propertyValue = String.Empty;
string propertyName = "ConnectionString";

using (SPSite site = new SPSite(SPContext.Current.Web.Url))
{
if (site.Properties.ContainsKey(propertyName))
propertyValue = site.Properties[propertyName];
}

 

But I don't see a dll to reference for this new functionality.

Nov 16, 2009 at 11:46 PM

Ah, it looks like this is just a typo, there is not SPSite.Properties, and none used in the code either.