Partager via


ExpansionProvider.ExpansionSession Property

Returns the expansion session created to manage editing the code snippet.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public ReadOnly Property ExpansionSession As IVsExpansionSession
public IVsExpansionSession ExpansionSession { get; }
public:
property IVsExpansionSession^ ExpansionSession {
    IVsExpansionSession^ get ();
}
member ExpansionSession : IVsExpansionSession with get
function get ExpansionSession () : IVsExpansionSession

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