-api-id | -api-type |
---|---|
M:Windows.Foundation.Metadata.ApiInformation.IsEventPresent(System.String,System.String) |
winrt method |
Returns true or false to indicate whether a specified event is present for a specified type.
The namespace-qualified name of the type.
The name of the event.
True if the specified event is present for the type; otherwise, false.
if (Windows.Foundation.Metadata.ApiInformation.IsEventPresent("Windows.Media.Core.AudioTrack", "OpenFailed"))
{
Debug.WriteLine("Windows.Media.Core.AudioTrack.OpenFailed event found");
}
else
{
Debug.WriteLine("Windows.Media.Core.AudioTrack.OpenFailed event NOT found");
}