-api-id | -api-type |
---|---|
M:Windows.Foundation.Metadata.ApiInformation.IsReadOnlyPropertyPresent(System.String,System.String) |
winrt method |
Returns true or false to indicate whether a specified read-only property 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.IsReadOnlyPropertyPresent("Windows.Devices.Sensors.Accelerometer", "ReadingType"))
{
Debug.WriteLine("Windows.Devices.Sensors.Accelerometer.ReadingType read-only property was found");
}
else
{
Debug.WriteLine("Windows.Devices.Sensors.Accelerometer.ReadingType read-only property was NOT found");
}