IVsCodeDefView::IsCodeDefView Method (IVsTextView^, Int32)

 

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)

int IsCodeDefView(
	IVsTextView^ pIVsTextView,
	[OutAttribute] int% pfIsCodeDefView
)

Parameters

pIVsTextView
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextView^

[in] A IVsTextView interface to the view.

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.

From vsshell80.idl:

HRESULT IsCodeDefView(
    [in] IVsTextView *pIVsTextView, 
    [out] BOOL *pfIsCodeDefView
);
Return to top
Show: