Condividi tramite


ExpansionFunction.GetIntellisenseList Method

Gets a list of all values the expansion function can return.

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

Syntax

'Dichiarazione
Public Overridable Function GetIntellisenseList As String()
'Utilizzo
Dim instance As ExpansionFunction
Dim returnValue As String()

returnValue = instance.GetIntellisenseList()
public virtual string[] GetIntellisenseList()
public:
virtual array<String^>^ GetIntellisenseList()
abstract GetIntellisenseList : unit -> string[] 
override GetIntellisenseList : unit -> string[] 
public function GetIntellisenseList() : String[]

Return Value

Type: array<System.String[]
If the type of the expansion function is a list, returns a list of values; otherwise, returns nulla null reference (Nothing in Visual Basic).

Remarks

An expansion function can return a value or a list, depending on its type. If the expansion function type is a list, this method returns an array containing the values of the expansion function. The list of values is presented in a drop-down list when the user edits a field in the code snippet that contains this expansion function. See the GetFunctionType method for a discussion of what type an expansion function can be.

The base method always returns nulla null reference (Nothing in Visual Basic) (the base class does not support multiple values for an expansion function).

.NET Framework Security

See Also

Reference

ExpansionFunction Class

ExpansionFunction Members

Microsoft.VisualStudio.Package Namespace