CustomQueryInterfaceResult Enum

Definition

Caution

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

Provides return values for the GetInterface(Guid, IntPtr) method.

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
Inheritance
CustomQueryInterfaceResult
Attributes

Fields

Name Value Description
Handled 0

The interface pointer that is returned from the GetInterface(Guid, IntPtr) method can be used as the result of IUnknown::QueryInterface.

NotHandled 1

The custom QueryInterface was not used. Instead, the default implementation of IUnknown::QueryInterface should be used.

Failed 2

The interface for a specific interface ID is not available. In this case, the returned interface is null. E_NOINTERFACE is returned to the caller of IUnknown::QueryInterface.

Applies to

Product Versions (Obsolete)
.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)