LanguageService.IsActive Property
Determines whether the language service is connected to the current view and therefore is active.
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)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Declaration
Public ReadOnly Property IsActive As Boolean
public bool IsActive { get; }
public:
property bool IsActive {
bool get ();
}
member IsActive : bool with get
function get IsActive () : boolean
Property Value
Type: Boolean
Returns true if the currently active view belongs to this language service; otherwise, returns false, the language service is not currently active.
Remarks
This property is accessed from OnIdle.
.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.