ExpansionProvider.ExpansionSession Property
Returns the expansion session created to manage editing the code snippet.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Dichiarazione
Public ReadOnly Property ExpansionSession As IVsExpansionSession
Get
'Utilizzo
Dim instance As ExpansionProvider
Dim value As IVsExpansionSession
value = instance.ExpansionSession
public IVsExpansionSession ExpansionSession { get; }
public:
property IVsExpansionSession^ ExpansionSession {
IVsExpansionSession^ get ();
}
member ExpansionSession : IVsExpansionSession
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
- 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.