LanguageService.GetPrimaryViewForSource Method
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)
Syntax
'宣言
Public Function GetPrimaryViewForSource ( _
src As Source _
) As IVsTextView
'使用
Dim instance As LanguageService
Dim src As Source
Dim returnValue As IVsTextView
returnValue = instance.GetPrimaryViewForSource(src)
public IVsTextView GetPrimaryViewForSource(
Source src
)
public:
IVsTextView^ GetPrimaryViewForSource(
Source^ src
)
member GetPrimaryViewForSource :
src:Source -> IVsTextView
public function GetPrimaryViewForSource(
src : Source
) : IVsTextView
Parameters
- src
Type: Microsoft.VisualStudio.Package.Source
Return Value
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
.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.