Partilhar via


IVsObjectManager2.CreateProjectReferenceSet Method

Definition

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

public:
 int CreateProjectReferenceSet(System::Object ^ pProject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSimpleBrowseComponentSet ^ % ppSet);
public:
 int CreateProjectReferenceSet(Platform::Object ^ pProject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSimpleBrowseComponentSet ^ &  ppSet);
int CreateProjectReferenceSet(winrt::Windows::Foundation::IInspectable const & pProject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSimpleBrowseComponentSet const & & ppSet);
public int CreateProjectReferenceSet (object pProject, out Microsoft.VisualStudio.Shell.Interop.IVsSimpleBrowseComponentSet ppSet);
abstract member CreateProjectReferenceSet : obj * IVsSimpleBrowseComponentSet -> int
Public Function CreateProjectReferenceSet (pProject As Object, ByRef ppSet As IVsSimpleBrowseComponentSet) As Integer

Parameters

pProject
Object

An object that implements VSProject.

ppSet
IVsSimpleBrowseComponentSet

A component set populated with Visual Studio project references.

Returns

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  
);  

Applies to