Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

CustomQueryInterfaceResult Enumeration

Provides return values for the GetInterface method.

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

public enum CustomQueryInterfaceResult

Member nameDescription
Supported by Portable Class LibraryFailedThe 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.
Supported by Portable Class LibraryHandledThe interface pointer that is returned from the GetInterface method can be used as the result of IUnknown::QueryInterface.
Supported by Portable Class LibraryNotHandledThe custom QueryInterface was not used. Instead, the default implementation of IUnknown::QueryInterface should be used.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft