CustomQueryInterfaceResult 枚举

定义

注意

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

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

C#
[System.Obsolete("CustomQueryInterfaceResult and support for ICustomQueryInterface may be unavailable in future releases.")]
public enum CustomQueryInterfaceResult
C#
public enum CustomQueryInterfaceResult
C#
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public enum CustomQueryInterfaceResult
继承
CustomQueryInterfaceResult
属性

字段

名称 说明
Failed 2

特定接口 ID 的接口不可用。 在这种情况下,返回的接口为 null。 E_NOINTERFACE 会返回给 IUnknown::QueryInterface 的调用方。

Handled 0

GetInterface(Guid, IntPtr) 方法返回的接口指针可用作 IUnknown::QueryInterface 的结果。

NotHandled 1

未使用自定义的 QueryInterface。 相反,应该使用 IUnknown::QueryInterface 的默认实现。

适用于

产品 版本 (已过时)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 (Core 1.0, Core 1.1)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 2.0, 2.1 (1.2, 1.3, 1.4, 1.5, 1.6)
UWP (10.0)