Share via


ExpansionProvider.ExpansionSession Property

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

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public ReadOnly Property ExpansionSession As IVsExpansionSession
'Usage
Dim instance As ExpansionProvider 
Dim value As IVsExpansionSession 

value = instance.ExpansionSession
public IVsExpansionSession ExpansionSession { get; }
public:
property IVsExpansionSession^ ExpansionSession {
    IVsExpansionSession^ get ();
}
public 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

ExpansionProvider Members

Microsoft.VisualStudio.Package Namespace