ISharePointProjectService.CreateSharePointConnection(Uri, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a local or remote connection with the given site url.
public Microsoft.VisualStudio.SharePoint.ISharePointConnection CreateSharePointConnection (Uri siteUrl, bool alwaysCreateRemoteConnection = false);
abstract member CreateSharePointConnection : Uri * bool -> Microsoft.VisualStudio.SharePoint.ISharePointConnection
Public Function CreateSharePointConnection (siteUrl As Uri, Optional alwaysCreateRemoteConnection As Boolean = false) As ISharePointConnection
Parameters
- siteUrl
- Uri
The url of the target site to be connected.
- alwaysCreateRemoteConnection
- Boolean
true
if a remote connection should be created even if the target site is on the local machine; otherwise, false
.
Returns
A local or remote connection with the given site url.