Share via


ApiInformation.IsTypePresent(String) Método

Definición

Devuelve true o false para indicar si existe un tipo especificado.

public:
 static bool IsTypePresent(Platform::String ^ typeName);
 static bool IsTypePresent(winrt::hstring const& typeName);
public static bool IsTypePresent(string typeName);
function isTypePresent(typeName)
Public Shared Function IsTypePresent (typeName As String) As Boolean

Parámetros

typeName
String

Platform::String

winrt::hstring

Nombre completo del espacio de nombres del tipo.

Devoluciones

Boolean

bool

True si el tipo especificado está presente; de lo contrario, false.

Ejemplos

if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.System.AppDiagnosticInfo"))
{
    Debug.WriteLine("Windows.System.AppDiagnosticInfo type was found");
}
else
{
    Debug.WriteLine("Windows.System.AppDiagnosticInfo type was NOT found");
}

Se aplica a