ISharePointProjectService.CreateSharePointConnection(Uri, Boolean) 方法

定义

用给定的网站 URL 创建本地或远程连接。

public Microsoft.VisualStudio.SharePoint.ISharePointConnection CreateSharePointConnection (Uri siteUrl, bool alwaysCreateRemoteConnection = false);

参数

siteUrl
Uri

要连接的目标网站的 URL。

alwaysCreateRemoteConnection
Boolean

如果即使目标站点在本地计算机上也应创建远程连接,则为 true;否则为 false

返回

ISharePointConnection

具有给定网站 URL 的本地或远程连接。

适用于