IVsContainedLanguageCodeSupport.GetMembers Method

Definition

Returns a collection of members corresponding to the specified flags.

public:
 int GetMembers(System::String ^ pszClassName, System::UInt32 dwFlags, [Runtime::InteropServices::Out] int % pcMembers, [Runtime::InteropServices::Out] IntPtr % ppbstrDisplayNames, [Runtime::InteropServices::Out] IntPtr % ppbstrMemberIDs);
public int GetMembers (string pszClassName, uint dwFlags, out int pcMembers, out IntPtr ppbstrDisplayNames, out IntPtr ppbstrMemberIDs);
abstract member GetMembers : string * uint32 * int * nativeint * nativeint -> int
Public Function GetMembers (pszClassName As String, dwFlags As UInteger, ByRef pcMembers As Integer, ByRef ppbstrDisplayNames As IntPtr, ByRef ppbstrMemberIDs As IntPtr) As Integer

Parameters

pszClassName
String

[in] Class name.

dwFlags
UInt32

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

pcMembers
Int32

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

ppbstrDisplayNames
IntPtr

nativeint

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

ppbstrMemberIDs
IntPtr

nativeint

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

Returns

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

Remarks

COM Signature

From singlefileeditor.idl:

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

Applies to