共用方式為


IVsIntellisenseHost.GetHostWindow 方法

傳回主應用程式視窗的控制代碼。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop.8.0 (在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)

語法

'宣告
Function GetHostWindow ( _
    <OutAttribute> ByRef hwnd As IntPtr _
) As Integer
int GetHostWindow(
    out IntPtr hwnd
)
int GetHostWindow(
    [OutAttribute] IntPtr% hwnd
)
abstract GetHostWindow : 
        hwnd:IntPtr byref -> int
function GetHostWindow(
    hwnd : IntPtr
) : int

參數

  • hwnd
    類型:IntPtr%

    [] out主應用程式視窗的控制代碼。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

C++

從 singlefileeditor.idl:

HRESULT IVsIntellisenseHost::GetHostWindow([out] HWND *hwnd);

.NET Framework 安全性

請參閱

參考

IVsIntellisenseHost 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間