Share via


ISharePointProjectService.CreateSharePointConnection(Uri, Boolean) Method

Definition

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.

Applies to