IVsContainedLanguageCodeSupport.GetMembers 方法

返回成员的集合与指定的标志对应。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)

语法

声明
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

参数

  • pszClassName
    类型:String

    [in] 类名。

  • dwFlags
    类型:UInt32

    [in] 标志的组合从指定成员的类型 CODEMEMBERTYPE 枚举的检索。

  • pcMembers
    类型:Int32%

    [out] 返回由返回的 ppbstrDisplayNames 和 ppbstrMemberIDs 数组指定的成员的数目。

  • ppbstrDisplayNames
    类型:IntPtr%

    [out] 返回显示名称列表。每个成员。

  • ppbstrMemberIDs
    类型:IntPtr%

    [out] 返回单个成员标识符字符串列表中每个成员。

返回值

类型:Int32
如果成功,则返回; S_OK否则,返回错误代码。

备注

COM 签名

从 singlefileeditor.idl:

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

.NET Framework 安全性

请参阅

参考

IVsContainedLanguageCodeSupport 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间