ApiInformation 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使你能够检测是否存在指定的成员、类型或 API 协定,以便可以跨各种设备安全地进行 API 调用。
public ref class ApiInformation abstract sealed
	/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ApiInformation final
	/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ApiInformation final
	[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class ApiInformation
	[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class ApiInformation
	Public Class ApiInformation
		- 继承
 
- 属性
 
Windows 要求
| 设备系列 | 
					 
							Windows 10 (在 10.0.10240.0 中引入) 
				 | 
			
| API contract | 
					 
							Windows.Foundation.FoundationContract (在 v1.0 中引入) 
				 | 
			
方法
| IsApiContractPresent(String, UInt16) | 
		 返回 true 或 false 以指示是否存在具有指定名称和主版本号的 API 协定。  | 
        	
| IsApiContractPresent(String, UInt16, UInt16) | 
		 返回 true 或 false 以指示是否存在具有指定名称和主版本号和次要版本号的 API 协定。  | 
        	
| IsEnumNamedValuePresent(String, String) | 
		 返回 true 或 false 以指示指定枚举是否存在指定的命名常量。  | 
        	
| IsEventPresent(String, String) | 
		 返回 true 或 false 以指示指定类型是否存在指定事件。  | 
        	
| IsMethodPresent(String, String) | 
		 返回 true 或 false 以指示指定类型是否存在指定方法。  | 
        	
| IsMethodPresent(String, String, UInt32) | 
		 返回 true 或 false 以指示指定类型是否存在具有指定输入参数数的指定方法重载。  | 
        	
| IsPropertyPresent(String, String) | 
		 返回 true 或 false 以指示指定类型是否存在 (可写或只读) 的指定属性。  | 
        	
| IsReadOnlyPropertyPresent(String, String) | 
		 返回 true 或 false 以指示指定类型是否存在指定的只读属性。  | 
        	
| IsTypePresent(String) | 
		 返回 true 或 false 以指示是否存在指定的类型。  | 
        	
| IsWriteablePropertyPresent(String, String) | 
		 返回 true 或 false 以指示指定类型是否存在指定的可写属性。  |