Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 947 Bytes

apiinformation_iseventpresent_1406163026.md

File metadata and controls

38 lines (30 loc) · 947 Bytes
-api-id -api-type
M:Windows.Foundation.Metadata.ApiInformation.IsEventPresent(System.String,System.String)
winrt method

Windows.Foundation.Metadata.ApiInformation.IsEventPresent

-description

Returns true or false to indicate whether a specified event is present for a specified type.

-parameters

-param typeName

The namespace-qualified name of the type.

-param eventName

The name of the event.

-returns

True if the specified event is present for the type; otherwise, false.

-remarks

-examples

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

-see-also