次の方法で共有


IVsObjectManager2.CreateSimpleBrowseComponentSet Method

Definition

Creates an empty component set which can be manually populated with components that can be browsed.

public:
 int CreateSimpleBrowseComponentSet(System::UInt32 Type, cli::array <Guid> ^ rgguidLibs, System::UInt32 ulcLibs, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSimpleBrowseComponentSet ^ % ppSet);
public int CreateSimpleBrowseComponentSet (uint Type, Guid[] rgguidLibs, uint ulcLibs, out Microsoft.VisualStudio.Shell.Interop.IVsSimpleBrowseComponentSet ppSet);
abstract member CreateSimpleBrowseComponentSet : uint32 * Guid[] * uint32 * IVsSimpleBrowseComponentSet -> int
Public Function CreateSimpleBrowseComponentSet (Type As UInteger, rgguidLibs As Guid(), ulcLibs As UInteger, ByRef ppSet As IVsSimpleBrowseComponentSet) As Integer

Parameters

Type
UInt32

One of the _BROWSE_COMPONENT_SET_TYPE values.

rgguidLibs
Guid[]

An array of Guid guids that identify the symbol libraries If Type is set to BCST_INCLUDE_LIBRARIES, the component set uses the libraries specified in the guid array to browse the components added to the set. The rgguidLibs cannot be a null in this case.If Type is set to BCST_EXCLUDE_LIBRARIES, the component set excludes the libraries specified in the guid array from browsing the components added to the set. If the rgguidLibs is null, the set does not exclude any libraries.

ulcLibs
UInt32

Number of elements in the guid array.

ppSet
IVsSimpleBrowseComponentSet

An empty set that can be populated with components that can be browsed.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Tracks symbols in generic Visual Studio projects which do not inherit from the VSProject type. The symbols contained in the simple set are used for browsing in the Class View tool.

COM Signature

From vsshell80.idl:

HRESULT CreateSimpleBrowseComponentSet(  
[in] BROWSE_COMPONENT_SET_TYPE Type,  
[in, size_is(ulcLibs)] const GUID rgguidLibs[],  
[in] ULONG ulcLibs,   
[out, retval] IVsSimpleBrowseComponentSet ** ppSet  
);  

Applies to