Compartir a través de


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.Uri

    The url of the target site to be connected.

  • alwaysCreateRemoteConnection
    Type: System.Boolean

    true 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

See Also

Reference

ISharePointProjectService Interface

Microsoft.VisualStudio.SharePoint Namespace