Adds a project reference to the project.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
声明
Function AddProjectReference ( _
proj As Object _
) As Object
用法
Dim instance As VCReferences
Dim proj As Object
Dim returnValue As Object
returnValue = instance.AddProjectReference(proj)
Object AddProjectReference(
Object proj
)
Object^ AddProjectReference(
[InAttribute] Object^ proj
)
function AddProjectReference(
proj : Object
) : Object
Parameters
proj
Type: System.ObjectThe project reference to add.
Return Value
Type: System.Object
An object representing the project reference.
Remarks
You can reference only loaded projects.
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.