다음을 통해 공유


IVsObjectManager2.CreateProjectReferenceSet Method

Creates a simple component set which is automatically populated and synchronized with Visual Studio project references.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

‘선언
Function CreateProjectReferenceSet ( _
    pProject As Object, _
    <OutAttribute> ByRef ppSet As IVsSimpleBrowseComponentSet _
) As Integer
‘사용 방법
Dim instance As IVsObjectManager2
Dim pProject As Object
Dim ppSet As IVsSimpleBrowseComponentSet
Dim returnValue As Integer

returnValue = instance.CreateProjectReferenceSet(pProject, _
    ppSet)
int CreateProjectReferenceSet(
    Object pProject,
    out IVsSimpleBrowseComponentSet ppSet
)
int CreateProjectReferenceSet(
    [InAttribute] Object^ pProject, 
    [OutAttribute] IVsSimpleBrowseComponentSet^% ppSet
)
abstract CreateProjectReferenceSet : 
        pProject:Object * 
        ppSet:IVsSimpleBrowseComponentSet byref -> int 
function CreateProjectReferenceSet(
    pProject : Object, 
    ppSet : IVsSimpleBrowseComponentSet
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The reference set is automatically updated by Visual Studio when references are added or removed from the project. The symbols contained in the reference set are used for browsing in the Class View.

COM Signature

From vsshell80.idl:

HRESULT CreateProjectReferenceSet(
[in] IUnknown * pProject, 
[out, retval] IVsSimpleBrowseComponentSet ** ppSet
);

.NET Framework Security

See Also

Reference

IVsObjectManager2 Interface

IVsObjectManager2 Members

Microsoft.VisualStudio.Shell.Interop Namespace

Other Resources

Class View