Compartilhar via


VCReferences.AddProjectReference Method

Adds a project reference to the project.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
Function AddProjectReference ( _
    proj As Object _
) As Object
Object AddProjectReference(
    Object proj
)
Object^ AddProjectReference(
    [InAttribute] Object^ proj
)
abstract AddProjectReference : 
        proj:Object -> Object
function AddProjectReference(
    proj : Object
) : Object

Parameters

Return Value

Type: System.Object
An object representing the project reference.

Remarks

You can reference only loaded projects.

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace