IVsContainedLanguageCodeSupport::GetMembers Method (String^, UInt32, Int32, IntPtr, IntPtr)

 

Returns a collection of members corresponding to the specified flags.

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

int GetMembers(
	String^ pszClassName,
	unsigned int dwFlags,
	[OutAttribute] int% pcMembers,
	[OutAttribute] IntPtr% ppbstrDisplayNames,
	[OutAttribute] IntPtr% ppbstrMemberIDs
)

Parameters

pszClassName
Type: System::String^

[in] Class name.

dwFlags
Type: System::UInt32

[in] A combination of flags from the CODEMEMBERTYPE enumeration specifying the types of members to retrieve.

pcMembers
Type: System::Int32

[out] Returns the number of members specified in the returned ppbstrDisplayNames and ppbstrMemberIDs arrays.

ppbstrDisplayNames
Type: System::IntPtr

[out] Returns a list of display names for each member.

ppbstrMemberIDs
Type: System::IntPtr

[out] Returns a list of unique member identifier strings for each member.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

From singlefileeditor.idl:

HRESULT GetMembers(
   [in]  LPCWSTR pszClassName,
   [in]  DWORD   dwFlags,
   [out] int*    pcMembers,
   [out] BSTR**  ppbstrDisplayNames,
   [out] BSTR**  ppbstrMemberIDs
);
Return to top
Show: