次の方法で共有


VsCodeWindowClass.GetPrimaryView Method

Returns the top (or primary) view of a split code window.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣言
Public Overridable Function GetPrimaryView ( _
    <OutAttribute> ByRef ppView As IVsTextView _
) As Integer
public virtual int GetPrimaryView(
    out IVsTextView ppView
)
public:
virtual int GetPrimaryView(
    [OutAttribute] IVsTextView^% ppView
)
abstract GetPrimaryView : 
        ppView:IVsTextView byref -> int 
override GetPrimaryView : 
        ppView:IVsTextView byref -> int 
public function GetPrimaryView(
    ppView : IVsTextView
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsCodeWindow.GetPrimaryView(IVsTextView%)

.NET Framework Security

See Also

Reference

VsCodeWindowClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace