Share via


VCReferences.CanAddAssemblyReference(String) Method

Definition

Returns a value indicating whether to add the given assembly (.NET) reference.

public:
 bool CanAddAssemblyReference(System::String ^ bstrRef);
public:
 bool CanAddAssemblyReference(Platform::String ^ bstrRef);
bool CanAddAssemblyReference(std::wstring const & bstrRef);
[System.Runtime.InteropServices.DispId(903)]
public bool CanAddAssemblyReference (string bstrRef);
[<System.Runtime.InteropServices.DispId(903)>]
abstract member CanAddAssemblyReference : string -> bool
Public Function CanAddAssemblyReference (bstrRef As String) As Boolean

Parameters

bstrRef
String

The assembly reference.

Returns

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

Attributes

Remarks

It would not be okay to add an assembly reference if, for example, you have an invalid GUID.

This method is generally used in tandem with the AddAssemblyReference method. You use this method to determine whether it is okay to add an assembly reference, and then if it is, then you call AddAssemblyReference.

Applies to