Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Public Function GetCodeWindowManagerForSource ( _
src As Source _
) As CodeWindowManager
public CodeWindowManager GetCodeWindowManagerForSource(
Source src
)
public:
CodeWindowManager^ GetCodeWindowManagerForSource(
Source^ src
)
member GetCodeWindowManagerForSource :
src:Source -> CodeWindowManager
public function GetCodeWindowManagerForSource(
src : Source
) : CodeWindowManager
Parameters
- src
Type: Microsoft.VisualStudio.Package.Source
[in] The Source object for which to get the associated CodeWindowManager object.
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
- 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.