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