ICustomPropertyProvider 介面

定義

提供 ICustomProperty 支援的查閱服務。 這個介面是由 物件實作,因此其自訂定義屬性可以當做執行時間系結來源使用。

public interface class ICustomPropertyProvider
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2089965397, 15944, 17076, 134, 119, 118, 55, 34, 103, 3, 63)]
struct ICustomPropertyProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2089965397, 15944, 17076, 134, 119, 118, 55, 34, 103, 3, 63)]
public interface ICustomPropertyProvider
Public Interface ICustomPropertyProvider
衍生
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

Type

取得自訂屬性的基礎型別。

方法

GetCustomProperty(String)

藉由指定屬性名稱,取得自訂屬性的 ICustomProperty 支持對象。

GetIndexedProperty(String, TypeName)

藉由指定屬性名稱和索引集合的類型,取得自訂屬性的 ICustomProperty 支持對象。

GetStringRepresentation()

根據實作支援 System.Object的假設,提供 「GetStringFromObject」 和/或 「ToString」 邏輯的支援。 此功能或服務可能會存取此邏輯,例如根據資料內容產生使用者介面自動化值。

適用於

另請參閱