ICustomProperty Interface

Definition

Implements custom property definition support for data binding sources that are implemented using COM.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(819630784, 9192, 17056, 174, 124, 115, 74, 14, 93, 39, 130)]
public interface ICustomProperty
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

ICustomProperty represents a property on an instance of an object, but the calling patterns support the ability to implement the interface per owner type.

Properties

CanRead

Gets a value that determines whether the custom property supports read access.

CanWrite

Gets a value that determines whether the custom property supports write access.

Name

Gets the path-relevant name of the property.

Type

Gets the underlying type of the custom property.

Methods

GetIndexedValue(Object, Object)

Gets the value at an index location, for cases where the custom property has indexer support.

GetValue(Object)

Gets the value of the custom property from a particular instance.

SetIndexedValue(Object, Object, Object)

Sets the value at an index location, for cases where the custom property has indexer support.

SetValue(Object, Object)

Sets the custom property value on a specified instance.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also