ISharePointProjectService.CreateSharePointConnection Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Create a local or remote connection with the given site url.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function CreateSharePointConnection ( _
siteUrl As Uri, _
alwaysCreateRemoteConnection As Boolean _
) As ISharePointConnection
ISharePointConnection CreateSharePointConnection(
Uri siteUrl,
bool alwaysCreateRemoteConnection
)
Parameters
siteUrl
Type: System.UriThe url of the target site to be connected.
alwaysCreateRemoteConnection
Type: System.Booleantrue if a remote connection should be created even if the target site is on the local machine; otherwise, false.
Return Value
Type: Microsoft.VisualStudio.SharePoint.ISharePointConnection
A local or remote connection with the given site url.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.