IVsProjectFlavorReferences.QueryAddProjectReference Method
Called before adding a reference to a flavored project. Allows the project to reject a reference.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaración
Function QueryAddProjectReference ( _
pReferencedProject As Object, _
<OutAttribute> ByRef pbCanAdd As Integer _
) As Integer
'Uso
Dim instance As IVsProjectFlavorReferences
Dim pReferencedProject As Object
Dim pbCanAdd As Integer
Dim returnValue As Integer
returnValue = instance.QueryAddProjectReference(pReferencedProject, _
pbCanAdd)
int QueryAddProjectReference(
Object pReferencedProject,
out int pbCanAdd
)
int QueryAddProjectReference(
[InAttribute] Object^ pReferencedProject,
[OutAttribute] int% pbCanAdd
)
abstract QueryAddProjectReference :
pReferencedProject:Object *
pbCanAdd:int byref -> int
function QueryAddProjectReference(
pReferencedProject : Object,
pbCanAdd : int
) : int
Parameters
- pReferencedProject
Type: System.Object
[in] Pointer to the IUnknown interface of the referenced project (project to be added).
- pbCanAdd
Type: System.Int32%
[out] Boolean. Set to true if the project can be added; false otherwise.
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