ISharePointProjectOutputReferenceCollection.Add Method (ISharePointProject, DeploymentType)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds an output reference to the project. The reference is added as a build dependency to the current project and included as a part of the SharePoint project item.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function Add ( _
project As ISharePointProject, _
deploymentType As DeploymentType _
) As ISharePointProjectOutputReference
ISharePointProjectOutputReference Add(
ISharePointProject project,
DeploymentType deploymentType
)
Parameters
project
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectThe project to be added as a reference.
deploymentType
Type: Microsoft.VisualStudio.SharePoint.DeploymentTypeA type of deployment as specified by the DeploymentType enumeration value.
Return Value
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectOutputReference
The reference that was added.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Occurs if the project parameter is nulla null reference (Nothing in Visual Basic). |
.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.