日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class WindowsApiChecker

    Helper class for determining if a Windows API contract is available.

    Inheritance
    Object
    WindowsApiChecker
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Windows.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public static class WindowsApiChecker
    Remarks

    See https://docs.microsoft.com/uwp/extension-sdks/windows-universal-sdk for a full list of contracts.

    Properties

    UniversalApiContractV3_IsAvailable

    Is the Universal API Contract v3.0 Available?

    Declaration
    [Obsolete("The UniversalApiContractV3_IsAvailable property is obsolete and will be removed from a future version of MRTK. Please use IsMethodAvailable(), IsPropertyAvailable() or IsTypeAvailable().")]
    public static bool UniversalApiContractV3_IsAvailable { get; }
    Property Value
    Type Description
    Boolean

    UniversalApiContractV4_IsAvailable

    Is the Universal API Contract v4.0 Available?

    Declaration
    [Obsolete("The UniversalApiContractV4_IsAvailable property is obsolete and will be removed from a future version of MRTK. Please use IsMethodAvailable(), IsPropertyAvailable() or IsTypeAvailable().")]
    public static bool UniversalApiContractV4_IsAvailable { get; }
    Property Value
    Type Description
    Boolean

    UniversalApiContractV5_IsAvailable

    Is the Universal API Contract v5.0 Available?

    Declaration
    [Obsolete("The UniversalApiContractV5_IsAvailable property is obsolete and will be removed from a future version of MRTK. Please use IsMethodAvailable(), IsPropertyAvailable() or IsTypeAvailable().")]
    public static bool UniversalApiContractV5_IsAvailable { get; }
    Property Value
    Type Description
    Boolean

    UniversalApiContractV6_IsAvailable

    Is the Universal API Contract v6.0 Available?

    Declaration
    [Obsolete("The UniversalApiContractV6_IsAvailable property is obsolete and will be removed from a future version of MRTK. Please use IsMethodAvailable(), IsPropertyAvailable() or IsTypeAvailable().")]
    public static bool UniversalApiContractV6_IsAvailable { get; }
    Property Value
    Type Description
    Boolean

    UniversalApiContractV7_IsAvailable

    Is the Universal API Contract v7.0 Available?

    Declaration
    [Obsolete("The UniversalApiContractV7_IsAvailable property is obsolete and will be removed from a future version of MRTK. Please use IsMethodAvailable(), IsPropertyAvailable() or IsTypeAvailable().")]
    public static bool UniversalApiContractV7_IsAvailable { get; }
    Property Value
    Type Description
    Boolean

    UniversalApiContractV8_IsAvailable

    Is the Universal API Contract v8.0 Available?

    Declaration
    [Obsolete("The UniversalApiContractV8_IsAvailable property is obsolete and will be removed from a future version of MRTK. Please use IsMethodAvailable(), IsPropertyAvailable() or IsTypeAvailable().")]
    public static bool UniversalApiContractV8_IsAvailable { get; }
    Property Value
    Type Description
    Boolean

    Methods

    CheckApiContracts()

    Declaration
    public static void CheckApiContracts()

    IsMethodAvailable(String, String, String)

    Checks to see if the requested method is present on the current platform.

    Declaration
    public static bool IsMethodAvailable(string namespaceName, string className, string methodName)
    Parameters
    Type Name Description
    String namespaceName

    The namespace (ex: "Windows.UI.Input.Spatial") containing the class.

    String className

    The name of the class containing the method (ex: "SpatialInteractionMananger").

    String methodName

    The name of the method (ex: "IsSourceKindSupported").

    Returns
    Type Description
    Boolean

    True if the method is available and can be called. Otherwise, false.

    IsPropertyAvailable(String, String, String)

    Checks to see if the requested property is present on the current platform.

    Declaration
    public static bool IsPropertyAvailable(string namespaceName, string className, string propertyName)
    Parameters
    Type Name Description
    String namespaceName

    The namespace (ex: "Windows.UI.Input.Spatial") containing the class.

    String className

    The name of the class containing the method (ex: "SpatialPointerPose").

    String propertyName

    The name of the method (ex: "Eyes").

    Returns
    Type Description
    Boolean

    True if the property is available and can be called. Otherwise, false.

    IsTypeAvailable(String, String)

    Checks to see if the requested type is present on the current platform.

    Declaration
    public static bool IsTypeAvailable(string namespaceName, string typeName)
    Parameters
    Type Name Description
    String namespaceName

    The namespace (ex: "Windows.UI.Input.Spatial") containing the class.

    String typeName

    The name of the class containing the method (ex: "SpatialPointerPose").

    Returns
    Type Description
    Boolean

    True if the type is available and can be called. Otherwise, false.

    Back to top Generated by DocFX