Adds a project reference.
Namespace: Microsoft.VisualStudio.Package.Automation
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function AddProject ( _
pProject As Project _
) As Reference
'使用
Dim instance As OAReferences
Dim pProject As Project
Dim returnValue As Reference
returnValue = instance.AddProject(pProject)
public Reference AddProject(
Project pProject
)
public:
virtual Reference^ AddProject(
Project^ pProject
) sealed
public final function AddProject(
pProject : Project
) : Reference
Parameters
pProject
Type: ProjectThe Project to reference.
Return Value
Type: VSLangProj.Reference
The added Reference.
Permissions
- 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.