Partager via


LanguageService.IsSourceOpen Method

Determines whether or not the source file is open.

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 Overridable Function IsSourceOpen ( _
    src As Source _
) As Boolean
public virtual bool IsSourceOpen(
    Source src
)
public:
virtual bool IsSourceOpen(
    Source^ src
)
abstract IsSourceOpen : 
        src:Source -> bool  
override IsSourceOpen : 
        src:Source -> bool
public function IsSourceOpen(
    src : Source
) : boolean

Parameters

Return Value

Type: Boolean
true if the file is a member of the sources owned by this service; otherwise false.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace