共用方式為


IVsTextLayerMarker.QueryClientInterface 方法

可讓呼叫端知道標記是否已經變成無效

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

語法

'宣告
Function QueryClientInterface ( _
    ByRef iid As Guid, _
    <OutAttribute> ByRef ppClient As IntPtr _
) As Integer
int QueryClientInterface(
    ref Guid iid,
    out IntPtr ppClient
)
int QueryClientInterface(
    [InAttribute] Guid% iid, 
    [OutAttribute] IntPtr% ppClient
)
abstract QueryClientInterface : 
        iid:Guid byref * 
        ppClient:IntPtr byref -> int
function QueryClientInterface(
    iid : Guid, 
    ppClient : IntPtr
) : int

參數

  • iid
    類型:Guid%

     

  • ppClient
    類型:IntPtr%

     

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。S_FALSE表示標記即會失效。

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsTextLayerMarker::QueryClientInterface(
   [in] REFIID iid,
   [out, iid_is(iid)] void **ppClient
);

.NET Framework 安全性

請參閱

參考

IVsTextLayerMarker 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間