ICustomPropertyProvider 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 ICustomProperty 支援的查詢服務。 此介面由物件實作,使其自訂屬性可作為執行時綁定來源。
public interface class ICustomPropertyProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2089965397, 15944, 17076, 134, 119, 118, 55, 34, 103, 3, 63)]
struct ICustomPropertyProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(2089965397, 15944, 17076, 134, 119, 118, 55, 34, 103, 3, 63)]
public interface ICustomPropertyProvider
Public Interface ICustomPropertyProvider
- 衍生
- 屬性
屬性
| 名稱 | Description |
|---|---|
| Type |
取得自訂屬性的底層類型。 |
方法
| 名稱 | Description |
|---|---|
| GetCustomProperty(String) |
透過指定屬性名稱,取得自訂屬性的 ICustomProperty 支援物件。 |
| GetIndexedProperty(String, TypeName) |
透過指定屬性名稱和索引集合的型別,取得自訂屬性的 ICustomProperty 支援物件。 |
| GetStringRepresentation() |
在實作支援 System.Object 的前提下,提供「GetStringFromObject」和/或「ToString」邏輯的支援。 此邏輯可透過功能或服務存取,例如根據資料內容產生 使用者介面自動化 值。 |