ICustomProperty 接口

定义

实现对使用 COM 实现的数据绑定源的自定义属性定义支持。

public interface class ICustomProperty
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(819630784, 9192, 17056, 174, 124, 115, 74, 14, 93, 39, 130)]
struct ICustomProperty
[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
Public Interface ICustomProperty
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

ICustomProperty 表示对象实例上的属性,但调用模式支持按所有者类型实现接口的能力。

属性

CanRead

获取一个值,该值确定自定义属性是否支持读取访问。

CanWrite

获取一个值,该值确定自定义属性是否支持写入访问。

Name

获取属性的路径相关名称。

Type

获取自定义属性的基础类型。

方法

GetIndexedValue(Object, Object)

获取索引位置处的值,以用于自定义属性支持索引器的情况。

GetValue(Object)

从特定实例获取自定义属性的值。

SetIndexedValue(Object, Object, Object)

在自定义属性支持索引器的情况下,在索引位置设置值。

SetValue(Object, Object)

设置指定实例上的自定义属性值。

适用于

另请参阅