Udostępnij za pośrednictwem


TypeAndMemberDropdownBars.GetMember Method

Returns the specified entry for the specified combo box.

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

Syntax

'Declaration
Public Function GetMember ( _
    combo As Integer, _
    entry As Integer _
) As DropDownMember
public DropDownMember GetMember(
    int combo,
    int entry
)
public:
DropDownMember^ GetMember(
    int combo, 
    int entry
)
member GetMember : 
        combo:int * 
        entry:int -> DropDownMember 
public function GetMember(
    combo : int, 
    entry : int
) : DropDownMember

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