ViewFilter.GetExpansionProvider Method
Returns an ExpansionProvider object.
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
'Déclaration
Public Overridable Function GetExpansionProvider As ExpansionProvider
'Utilisation
Dim instance As ViewFilter
Dim returnValue As ExpansionProvider
returnValue = instance.GetExpansionProvider()
public virtual ExpansionProvider GetExpansionProvider()
public:
virtual ExpansionProvider^ GetExpansionProvider()
abstract GetExpansionProvider : unit -> ExpansionProvider
override GetExpansionProvider : unit -> ExpansionProvider
public function GetExpansionProvider() : ExpansionProvider
Return Value
Type: Microsoft.VisualStudio.Package.ExpansionProvider
If there is an expansion provider, returns an ExpansionProvider object; otherwise, returns nulla null reference (Nothing in Visual Basic).
Remarks
This method returns the expansion provider that handles code snippets. If the language service does not support code snippets, this method returns nulla null reference (Nothing in Visual Basic).
The base method forwards the call to the Source object's GetExpansionProvider method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.