Source.GetHiddenTextSession Method
Gets the hidden region manager if available.
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 Function GetHiddenTextSession As IVsHiddenTextSession
'Utilizzo
Dim instance As Source
Dim returnValue As IVsHiddenTextSession
returnValue = instance.GetHiddenTextSession()
public IVsHiddenTextSession GetHiddenTextSession()
public:
IVsHiddenTextSession^ GetHiddenTextSession()
member GetHiddenTextSession : unit -> IVsHiddenTextSession
public function GetHiddenTextSession() : IVsHiddenTextSession
Return Value
Type: Microsoft.VisualStudio.TextManager.Interop.IVsHiddenTextSession
If successful, returns an IVsHiddenTextSession object representing the hidden region manager; otherwise returns nulla null reference (Nothing in Visual Basic).
Remarks
The IVsHiddenTextSession object is obtained from Visual Studio. This method is normally not called unless outlining is enabled (the OutliningEnabled property returns true).
The IVsHiddenTextSession manages hidden regions in a source file.
.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.