英語で読む

次の方法で共有


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 です。 IUnknown::QueryInterface の呼び出し元に E_NOINTERFACE が返されます。

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)