IVsCodeDefView.IsCodeDefView Method

Check whether a given IVsTextView is owned by the Code Definition tool window.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

‘선언
Function IsCodeDefView ( _
    pIVsTextView As IVsTextView, _
    <OutAttribute> ByRef pfIsCodeDefView As Integer _
) As Integer
‘사용 방법
Dim instance As IVsCodeDefView
Dim pIVsTextView As IVsTextView
Dim pfIsCodeDefView As Integer
Dim returnValue As Integer

returnValue = instance.IsCodeDefView(pIVsTextView, _
    pfIsCodeDefView)
int IsCodeDefView(
    IVsTextView pIVsTextView,
    out int pfIsCodeDefView
)
int IsCodeDefView(
    [InAttribute] IVsTextView^ pIVsTextView, 
    [OutAttribute] int% pfIsCodeDefView
)
abstract IsCodeDefView : 
        pIVsTextView:IVsTextView * 
        pfIsCodeDefView:int byref -> int 
function IsCodeDefView(
    pIVsTextView : IVsTextView, 
    pfIsCodeDefView : int
) : int

Parameters

  • pfIsCodeDefView
    Type: System.Int32%
    [out] true if the view is owned by the Code Definition tool window; otherwise false.

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IsCodeDefView(
    [in] IVsTextView *pIVsTextView, 
    [out] BOOL *pfIsCodeDefView
);

.NET Framework Security

See Also

Reference

IVsCodeDefView Interface

IVsCodeDefView Members

Microsoft.VisualStudio.Shell.Interop Namespace