Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.05 KB

apiinformation_isreadonlypropertypresent_335242451.md

File metadata and controls

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

Windows.Foundation.Metadata.ApiInformation.IsReadOnlyPropertyPresent

-description

Returns true or false to indicate whether a specified read-only 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.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");
}

-see-also