ICustomProperty 介面
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實作使用 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 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
ICustomProperty 代表物件實例上的屬性,但呼叫模式支援每個擁有者類型實作介面的能力。
Can |
取得值,這個值會判斷自訂屬性是否支援讀取權限。 |
Can |
取得值,這個值會判斷自訂屬性是否支援寫入存取。 |
Name |
取得屬性的路徑相關名稱。 |
Type |
取得自訂屬性的基礎型別。 |
Get |
取得索引位置的值,例如自訂屬性具有索引子支援的情況。 |
Get |
從特定實例取得自訂屬性的值。 |
Set |
針對自訂屬性具有索引子支援的情況,請在索引位置設定值。 |
Set |
在指定的實例上設定自訂屬性值。 |
產品 | 版本 |
---|---|
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 |