Freigeben über


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

'Declaration
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

See Also

Reference

ExpansionProvider Class

Microsoft.VisualStudio.Package Namespace