Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Links to the web project specified by webProjectPath.
Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function LinkToWebProject ( _
    webProjectPath As String, _
    doNotModifyAppProject As Boolean, _
    doNotModifyWebProject As Boolean _
) As String
string LinkToWebProject(
    string webProjectPath,
    bool doNotModifyAppProject,
    bool doNotModifyWebProject
)
Parameters
- webProjectPath 
 Type: System.String- The full path to the web project. nulla null reference (Nothing in Visual Basic) is accepted for removing the existing link to the web project. 
- doNotModifyAppProject 
 Type: System.Boolean- Indicates if the app project should not be modified after link. 
- doNotModifyWebProject 
 Type: System.Boolean- Indicates if the web project should not be modified after link. 
Return Value
Type: System.String
The full path to the originally linked web project, or nulla null reference (Nothing in Visual Basic) if there is no web project linked before.
.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.