Sdílet prostřednictvím


VCReferences.CanAddProjectReference(Object) Method

Definition

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

public:
 bool CanAddProjectReference(System::Object ^ proj);
public:
 bool CanAddProjectReference(Platform::Object ^ proj);
bool CanAddProjectReference(winrt::Windows::Foundation::IInspectable const & proj);
[System.Runtime.InteropServices.DispId(905)]
public bool CanAddProjectReference (object proj);
[<System.Runtime.InteropServices.DispId(905)>]
abstract member CanAddProjectReference : obj -> bool
Public Function CanAddProjectReference (proj As Object) As Boolean

Parameters

proj
Object

The project reference.

Returns

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

Attributes

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.

Applies to