Compartir a través de


LanguageService.GetPrimaryViewForSource Method

Calls GetPrimaryView on the code window manager for the source.

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.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 Function GetPrimaryViewForSource ( _
    src As Source _
) As IVsTextView
public IVsTextView GetPrimaryViewForSource(
    Source src
)
public:
IVsTextView^ GetPrimaryViewForSource(
    Source^ src
)
member GetPrimaryViewForSource : 
        src:Source -> IVsTextView
public function GetPrimaryViewForSource(
    src : Source
) : IVsTextView

Parameters

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
The primary view.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace