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)

在指定的實例上設定自訂屬性值。

適用於

另請參閱