Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.06 KB

apiinformation_iswriteablepropertypresent_1126745662.md

File metadata and controls

38 lines (30 loc) · 1.06 KB
-api-id -api-type
M:Windows.Foundation.Metadata.ApiInformation.IsWriteablePropertyPresent(System.String,System.String)
winrt method

Windows.Foundation.Metadata.ApiInformation.IsWriteablePropertyPresent

-description

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

-parameters

-param typeName

The namespace-qualified name of the type.

-param propertyName

The name of the property.

-returns

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

-remarks

-examples

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

-see-also