-api-id | -api-type |
---|---|
M:Windows.Foundation.Metadata.ApiInformation.IsPropertyPresent(System.String,System.String) |
winrt method |
Returns true or false to indicate whether a specified property (writeable or read-only) is present for a specified type.
The namespace-qualified name of the type.
The name of the property.
True if the specified property is present for the type; otherwise, false.
if (Windows.Foundation.Metadata.ApiInformation.IsPropertyPresent("Windows.Devices.Sensors.Accelerometer", "ReadingTransform"))
{
Debug.WriteLine("Windows.Devices.Sensors.Accelerometer.ReadingTransform property was found");
}
else
{
Debug.WriteLine("Windows.Devices.Sensors.Accelerometer.ReadingTransform property was NOT found");
}