IVsProjectFlavorReferences.QueryCanBeReferenced Method
Called before another project attempts to make a reference to this flavored project. The project can refuse being referenced.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function QueryCanBeReferenced ( _
pReferencingProject As Object, _
<OutAttribute> ByRef pbAllowReferenced As Integer _
) As Integer
'用途
Dim instance As IVsProjectFlavorReferences
Dim pReferencingProject As Object
Dim pbAllowReferenced As Integer
Dim returnValue As Integer
returnValue = instance.QueryCanBeReferenced(pReferencingProject, _
pbAllowReferenced)
int QueryCanBeReferenced(
Object pReferencingProject,
out int pbAllowReferenced
)
int QueryCanBeReferenced(
[InAttribute] Object^ pReferencingProject,
[OutAttribute] int% pbAllowReferenced
)
abstract QueryCanBeReferenced :
pReferencingProject:Object *
pbAllowReferenced:int byref -> int
function QueryCanBeReferenced(
pReferencingProject : Object,
pbAllowReferenced : int
) : int
Parameters
- pReferencingProject
Type: System.Object
[in] Pointer to the 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.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsProjectFlavorReferences Interface