CustomQueryInterfaceResult Enumerazione

Definizione

Attenzione

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

Fornisce i valori restituiti dal metodo 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
Ereditarietà
CustomQueryInterfaceResult
Attributi

Campi

Nome Valore Descrizione
Failed 2

L'interfaccia per un ID di interfaccia specifico non è disponibile. In questo caso l'interfaccia restituita è null. E_NOINTERFACE viene restituito al chiamante di IUnknown::QueryInterface.

Handled 0

Il puntatore a interfaccia restituito dal metodo GetInterface(Guid, IntPtr) può essere usato come risultato di IUnknown::QueryInterface.

NotHandled 1

La QueryInterface personalizzata non è stata utilizzata. Al contrario, deve essere usata l'implementazione predefinita di IUnknown::QueryInterface.

Si applica a

Prodotto Versioni (Obsoleto)
.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)