LanguageService.GetCodeWindowManagerForSource Method

Returns the CodeWindowManager object associated with the specified Source object.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

声明
Public Function GetCodeWindowManagerForSource ( _
    src As Source _
) As CodeWindowManager
用法
Dim instance As LanguageService
Dim src As Source
Dim returnValue As CodeWindowManager

returnValue = instance.GetCodeWindowManagerForSource(src)
public CodeWindowManager GetCodeWindowManagerForSource(
    Source src
)
public:
CodeWindowManager^ GetCodeWindowManagerForSource(
    Source^ src
)
member GetCodeWindowManagerForSource : 
        src:Source -> CodeWindowManager 
public function GetCodeWindowManagerForSource(
    src : Source
) : CodeWindowManager

Parameters

Return Value

Type: Microsoft.VisualStudio.Package.CodeWindowManager
If successful, returns a CodeWindowManager object; otherwise, returns a null value indicating the specified source is not associated with a particular CodeWindowManager object managed by this language service.

Remarks

Each Source is associated with an instance of a CodeWindowManager since each Source object contains information specific to what is presented in a particular code view. This method searches an internal list for a CodeWindowManager that contains a matching Source object and returns the found CodeWindowManager object.

This method is not called by the default language service but you can call it if you need to obtain a CodeWindowManager object for a particular Source object. The default language service maintains the internal list for you.

.NET Framework Security

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace