使用英语阅读

通过


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

int GetMembers(
    string pszClassName,
    uint dwFlags,
    out int pcMembers,
    out IntPtr ppbstrDisplayNames,
    out IntPtr ppbstrMemberIDs
)

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