次の方法で共有


TypeAndMemberDropdownBars.GetMember Method

Returns the specified entry for the specified combo box.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Public Function GetMember ( _
    combo As Integer, _
    entry As Integer _
) As DropDownMember
public DropDownMember GetMember(
    int combo,
    int entry
)

Parameters

  • combo
    Type: System.Int32
    [in] The ID of the combo box (0 for the types combo box, 1 for the members combo box).
  • entry
    Type: System.Int32
    [in] The index of the entry to get.

Return Value

Type: Microsoft.VisualStudio.Package.DropDownMember
If successful, returns a DropDownMember object describing the request entry; otherwise, returns nulla null reference (Nothing in Visual Basic).

Remarks

This helper method retrieves the requested entry from the appropriate list that manages the entries for a combo box. Since the lists are private to the base class, a derived class must use this method to access any entry associated with a combo box.

.NET Framework Security

See Also

Reference

TypeAndMemberDropdownBars Class

Microsoft.VisualStudio.Package Namespace