Partager via


IVsContainedLanguageCodeSupport.GetMembers Method

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)

Syntax

'Declaration
Function GetMembers ( _
    pszClassName As String, _
    dwFlags As UInteger, _
    <OutAttribute> ByRef pcMembers As Integer, _
    <OutAttribute> ByRef ppbstrDisplayNames As IntPtr, _
    <OutAttribute> ByRef ppbstrMemberIDs As IntPtr _
) As Integer
int GetMembers(
    string pszClassName,
    uint dwFlags,
    out int pcMembers,
    out IntPtr ppbstrDisplayNames,
    out IntPtr ppbstrMemberIDs
)
int GetMembers(
    [InAttribute] String^ pszClassName, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] int% pcMembers, 
    [OutAttribute] IntPtr% ppbstrDisplayNames, 
    [OutAttribute] IntPtr% ppbstrMemberIDs
)
abstract GetMembers : 
        pszClassName:string * 
        dwFlags:uint32 * 
        pcMembers:int byref * 
        ppbstrDisplayNames:IntPtr byref * 
        ppbstrMemberIDs:IntPtr byref -> int
function GetMembers(
    pszClassName : String, 
    dwFlags : uint, 
    pcMembers : int, 
    ppbstrDisplayNames : IntPtr, 
    ppbstrMemberIDs : IntPtr
) : int

Parameters

  • 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.

Remarks

COM Signature

From singlefileeditor.idl:

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

.NET Framework Security

See Also

Reference

IVsContainedLanguageCodeSupport Interface

Microsoft.VisualStudio.TextManager.Interop Namespace