CustomQueryInterfaceResult Enumeration

.NET Framework (current version)
 

Provides return values for the GetInterface method.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
[ComVisibleAttribute(false)]
public enum CustomQueryInterfaceResult

Member nameDescription
Failed

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.

Handled

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

NotHandled

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: