Share via


ISharePointProjectOutputReferenceCollection.Add Method

Definition

Overloads

Add(ISharePointProject, DeploymentType)

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.

Add(Guid, DeploymentType)

Adds an output reference to the project specified by projectId. The reference is added as a build dependency to the current project and included as a part of the SharePoint project item.

Add(String, DeploymentType)

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.

Add(ISharePointProject, DeploymentType)

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.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectOutputReference ^ Add(Microsoft::VisualStudio::SharePoint::ISharePointProject ^ project, Microsoft::VisualStudio::SharePoint::DeploymentType deploymentType);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectOutputReference Add (Microsoft.VisualStudio.SharePoint.ISharePointProject project, Microsoft.VisualStudio.SharePoint.DeploymentType deploymentType);
abstract member Add : Microsoft.VisualStudio.SharePoint.ISharePointProject * Microsoft.VisualStudio.SharePoint.DeploymentType -> Microsoft.VisualStudio.SharePoint.ISharePointProjectOutputReference
Public Function Add (project As ISharePointProject, deploymentType As DeploymentType) As ISharePointProjectOutputReference

Parameters

project
ISharePointProject

The project to be added as a reference.

deploymentType
DeploymentType

A type of deployment as specified by the DeploymentType enumeration value.

Returns

The reference that was added.

Exceptions

Occurs if the project parameter is null.

Applies to

Add(Guid, DeploymentType)

Adds an output reference to the project specified by projectId. The reference is added as a build dependency to the current project and included as a part of the SharePoint project item.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectOutputReference ^ Add(Guid projectId, Microsoft::VisualStudio::SharePoint::DeploymentType deploymentType);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectOutputReference Add (Guid projectId, Microsoft.VisualStudio.SharePoint.DeploymentType deploymentType);
abstract member Add : Guid * Microsoft.VisualStudio.SharePoint.DeploymentType -> Microsoft.VisualStudio.SharePoint.ISharePointProjectOutputReference
Public Function Add (projectId As Guid, deploymentType As DeploymentType) As ISharePointProjectOutputReference

Parameters

projectId
Guid

Each project in a Visual Studio solution has a unique ID. This parameter represents the ID of the project to be added as a reference. The project specified by projectId should be loaded in the solution for this method to work correctly.

deploymentType
DeploymentType

A type of deployment as specified by the DeploymentType enumeration value.

Returns

The reference that was added.

Exceptions

Occurs if no project with the specified projectId is found.

Applies to

Add(String, DeploymentType)

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.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectOutputReference ^ Add(System::String ^ projectFullPath, Microsoft::VisualStudio::SharePoint::DeploymentType deploymentType);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectOutputReference Add (string projectFullPath, Microsoft.VisualStudio.SharePoint.DeploymentType deploymentType);
abstract member Add : string * Microsoft.VisualStudio.SharePoint.DeploymentType -> Microsoft.VisualStudio.SharePoint.ISharePointProjectOutputReference
Public Function Add (projectFullPath As String, deploymentType As DeploymentType) As ISharePointProjectOutputReference

Parameters

projectFullPath
String

The project to be added as a reference. The project should be loaded in the solution for this method to work correctly.

deploymentType
DeploymentType

A type of deployment as specified by the DeploymentType enumeration value.

Returns

The reference that was added.

Exceptions

Occurs if the parameter projectFullPath is null.

Occurs if the parameter projectFullPath is null or no corresponding project could be found

Applies to