在VS.Net 2010 Beta 2中:当一个团队项目被创建向导提供的是否要配置项目的SharePoint门户中选择。我怎么能确定的程序团队项目是否配置了门户。预先感谢您的任何帮助。

有帮助吗?

解决方案

您知道网址?门户的默认网址是 HTTP://serverName/sites/teamProjectName/default.aspx ,分辩?如果是这样,使用:

WebRequest request = WebRequest.Create("sharepointURL");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
if (response == null || response.StatusCode != HttpStatusCode.OK)
{
   // Do logic here.
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top