IVsProjectFlavorReferences.QueryCanBeReferenced(Object, Int32) 方法

定义

在另一个项目尝试引用此风格项目之前调用。 项目可以拒绝引用。

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

参数

pReferencingProject
Object

中指向要 Microsoft.VisualStudio.IUnknown 引用此项目的项目的接口的指针。

pbAllowReferenced
Int32

弄指向布尔值的指针。 true如果其他项目可以引用此项目,则设置为。 否则设置为 false

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

适用于