VCReferences::CanAddAssemblyReference Method (String^)
Visual Studio 2015
Returns a value indicating whether to add the given assembly (.NET) reference.
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Parameters
- bstrRef
-
Type:
System::String^
The assembly reference.
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.
Show: