ExpansionProvider.ExpansionSession Property
Returns the expansion session created to manage editing the code snippet.
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
'宣告
Public ReadOnly Property ExpansionSession As IVsExpansionSession
public IVsExpansionSession ExpansionSession { get; }
Property Value
Type: Microsoft.VisualStudio.TextManager.Interop.IVsExpansionSession
Returns the IVsExpansionSession object that was passed to the OnBeforeInsertion method.
Remarks
The IVsExpansionSession object is created by Visual Studio and passed to the expansion provider through the OnBeforeInsertion 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.