Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called before this flavored project attempts to make a reference to another project, or before this flavored project attempts to refresh an existing project reference. This flavored project can refuse referencing another project.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
Syntax
'Declaration
Function QueryAddProjectReferenceEx ( _
pReferencedProject As Object, _
queryContext As Integer, _
<OutAttribute> ByRef pResult As UInteger, _
<OutAttribute> ByRef pbstreReason As String _
) As Integer
int QueryAddProjectReferenceEx(
Object pReferencedProject,
int queryContext,
out uint pResult,
out string pbstreReason
)
int QueryAddProjectReferenceEx(
[InAttribute] Object^ pReferencedProject,
[InAttribute] int queryContext,
[OutAttribute] unsigned int% pResult,
[OutAttribute] String^% pbstreReason
)
abstract QueryAddProjectReferenceEx :
pReferencedProject:Object *
queryContext:int *
pResult:uint32 byref *
pbstreReason:string byref -> int
function QueryAddProjectReferenceEx(
pReferencedProject : Object,
queryContext : int,
pResult : uint,
pbstreReason : String
) : int
Parameters
pReferencedProject
Type: Object[in] The project to be referenced.
queryContext
Type: Int32[in] The context of how the project is referenced.
pResult
Type: UInt32%[out] The result of the reference query.
pbstreReason
Type: String%[out] An optional reason that can be used with a reference refresh. During a reference refresh, the flavor should not show any dialogs. Instead the flavor can output this optional parameter that is shown in the Error List View.
Return Value
Type: 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.