ExpansionProvider Constructor
Initializes a new instance of the ExpansionProvider class.
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)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Declaration
Public Sub New ( _
src As Source _
)
public ExpansionProvider(
Source src
)
Parameters
- src
Type: Microsoft.VisualStudio.Package.Source
[in] A Source object describing the source that this expansion provider supports.
Remarks
The base method obtains the IVsTextLines object returned from the GetTextLines method on the Source object and then casts the IVsTextLines object to an IVsExpansion object. If successful, the IVsTextLines object supports insertion of code snippets (which is done through the IVsExpansion interface). The rest of the methods in the ExpansionProvider class assume the IVsExpansion object was successfully obtained.
.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.