VCReferences.CanAddProjectReference Method

Returns a value indicating whether to add the given project reference.

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

Syntax

声明
Function CanAddProjectReference ( _
    proj As Object _
) As Boolean
用法
Dim instance As VCReferences
Dim proj As Object
Dim returnValue As Boolean

returnValue = instance.CanAddProjectReference(proj)
bool CanAddProjectReference(
    Object proj
)
bool CanAddProjectReference(
    [InAttribute] Object^ proj
)
function CanAddProjectReference(
    proj : Object
) : boolean

Parameters

Return Value

Type: System.Boolean

true to add the given project reference; otherwise, false.

Remarks

This method is generally used in conjunction with the AddProjectReference method. You use this method to determine whether it is okay to add a project reference, and if it is, then you call AddProjectReference.

Permissions

See Also

Reference

VCReferences Interface

VCReferences Members

Microsoft.VisualStudio.VCProjectEngine Namespace