Returns an ExpansionProvider object.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Function GetExpansionProvider As ExpansionProvider
'使用
Dim instance As ViewFilter
Dim returnValue As ExpansionProvider
returnValue = instance.GetExpansionProvider()
public virtual ExpansionProvider GetExpansionProvider()
public:
virtual ExpansionProvider^ GetExpansionProvider()
public function GetExpansionProvider() : ExpansionProvider
Return Value
Type: Microsoft.VisualStudio.Package.ExpansionProvider
If there is an expansion provider, returns an ExpansionProvider object; otherwise, returns a 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 a null reference (Nothing in Visual Basic).
The base method forwards the call to the Source object's GetExpansionProvider method.
Permissions
- 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.