Udostępnij za pośrednictwem


IVsProjectFlavorReferences.QueryCanBeReferenced(Object, Int32) Method

Definition

Called before another project attempts to make a reference to this flavored project. The project can refuse being referenced.

public:
 int QueryCanBeReferenced(System::Object ^ pReferencingProject, [Runtime::InteropServices::Out] int % pbAllowReferenced);
int QueryCanBeReferenced(winrt::Windows::Foundation::IInspectable const & pReferencingProject, [Runtime::InteropServices::Out] int & pbAllowReferenced);
public int QueryCanBeReferenced (object pReferencingProject, out int pbAllowReferenced);
abstract member QueryCanBeReferenced : obj * int -> int
Public Function QueryCanBeReferenced (pReferencingProject As Object, ByRef pbAllowReferenced As Integer) As Integer

Parameters

pReferencingProject
Object

[in] Pointer to the Microsoft.VisualStudio.IUnknown interface of the project wanting to reference this project.

pbAllowReferenced
Int32

[out] Pointer to a Boolean. Set to true if the other project can reference this project. Otherwise, set to false.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to