ApiInformation.IsTypePresent(String) 메서드

정의

true 또는 false를 반환하여 지정된 형식이 있는지 여부를 나타냅니다.

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

매개 변수

typeName
String

Platform::String

winrt::hstring

형식의 네임스페이스 정규화된 이름입니다.

반환

Boolean

bool

지정 한 형식이 있으면 True이고, 그렇지 않으면 false입니다.

예제

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");
}

적용 대상