Colorizer.Suspend Method
Called to suspend use of the colorizer.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Overridable Sub Suspend
'使用
Dim instance As Colorizer
instance.Suspend()
public virtual void Suspend()
public:
virtual void Suspend()
abstract Suspend : unit -> unit
override Suspend : unit -> unit
public function Suspend()
Remarks
This method must be matched by a later call to the Resume method.
The base method increments an internal count that can be examined by a call to the GetStateMaintenanceFlag method.
This method is used when building a compound action such as a code snippet expansion that can be undone but for which colorization information is unnecessary.
.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.