IVsProjectFlavorReferences::QueryCanBeReferenced Method (Object^, Int32)
Visual Studio 2015
Called before another project attempts to make a reference to this flavored project. The project can refuse being referenced.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int QueryCanBeReferenced( Object^ pReferencingProject, [OutAttribute] int% pbAllowReferenced )
Parameters
- pReferencingProject
-
Type:
System::Object^
[in] Pointer to the T:Microsoft.VisualStudio.IUnknown interface of the project wanting to reference this project.
- pbAllowReferenced
-
Type:
System::Int32
[out] Pointer to a Boolean. Set to true if the other project can reference this project. Otherwise, set to false.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: