共用方式為


CustomQueryInterfaceResult 列舉

定義

警告

CustomQueryInterfaceResult and support for ICustomQueryInterface may be unavailable in future releases.

提供 GetInterface(Guid, IntPtr) 方法的傳回值。

public enum class CustomQueryInterfaceResult
[System.Obsolete("CustomQueryInterfaceResult and support for ICustomQueryInterface may be unavailable in future releases.")]
public enum CustomQueryInterfaceResult
public enum CustomQueryInterfaceResult
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public enum CustomQueryInterfaceResult
[<System.Obsolete("CustomQueryInterfaceResult and support for ICustomQueryInterface may be unavailable in future releases.")>]
type CustomQueryInterfaceResult = 
type CustomQueryInterfaceResult = 
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type CustomQueryInterfaceResult = 
Public Enum CustomQueryInterfaceResult
繼承
CustomQueryInterfaceResult
屬性

欄位

名稱 Description
Handled 0

從該 GetInterface(Guid, IntPtr) 方法回傳的介面指標可作為 IUnknown::QueryInterface 的結果使用。

NotHandled 1

但這項習俗 QueryInterface 並未被採用。 取而代之的是,應使用預設實作的 IUnknown::QueryInterface

Failed 2

該介面無法提供特定介面 ID 的介面。 此時回傳介面為 null。 E_NOINTERFACE 會回傳給 IUnknown::QueryInterface 的呼叫者。

適用於