ApiInformation.IsWriteablePropertyPresent(String, String) ApiInformation.IsWriteablePropertyPresent(String, String) ApiInformation.IsWriteablePropertyPresent(String, String) ApiInformation.IsWriteablePropertyPresent(String, String) ApiInformation.IsWriteablePropertyPresent(String, String) Method

Definition

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

public : static Platform::Boolean IsWriteablePropertyPresent(Platform::String typeName, Platform::String propertyName)
static bool IsWriteablePropertyPresent(winrt::hstring typeName, winrt::hstring propertyName) const;
public static bool IsWriteablePropertyPresent(String typeName, String propertyName)
Public Shared Function IsWriteablePropertyPresent(typeName As String, propertyName As String) As bool
var bool = Windows.Foundation.Metadata.ApiInformation.isWriteablePropertyPresent(typeName, propertyName);

Parameters

typeName
String String String

The namespace-qualified name of the type.

propertyName
String String String

The name of the property.

Returns

bool bool bool

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

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