CustomQueryInterfaceMode 枚举

定义

警告

此 API 现已过时。

public enum class CustomQueryInterfaceMode
[System.Obsolete("CustomQueryInterfaceMode and support for ICustomQueryInterface may be unavailable in future releases.")]
[System.Serializable]
public enum CustomQueryInterfaceMode
type CustomQueryInterfaceMode = 
Public Enum CustomQueryInterfaceMode
继承
CustomQueryInterfaceMode
属性

字段

Allow 1

IUnknown::QueryInterface 方法调用可以使用 ICustomQueryInterface 接口。IUnknown::QueryInterface method calls can use the ICustomQueryInterface interface. 使用此值时,GetComInterfaceForObject(Object, Type, CustomQueryInterfaceMode) 方法重载的功能与 GetComInterfaceForObject(Object, Type) 重载的功能类似。When you use this value, the GetComInterfaceForObject(Object, Type, CustomQueryInterfaceMode) method overload functions like the GetComInterfaceForObject(Object, Type) overload.

Ignore 0

IUnknown::QueryInterface 方法调用应忽略 ICustomQueryInterface 接口。IUnknown::QueryInterface method calls should ignore the ICustomQueryInterface interface.

适用于