IKeyIndexMapping 介面

定義

提供支援專案唯一識別碼與索引之間對應的方法。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public interface class IKeyIndexMapping
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.Guid(2985540512, 4238, 22029, 150, 129, 38, 57, 27, 75, 195, 13)]
/// [Windows.Foundation.Metadata.Version(1)]
struct IKeyIndexMapping
/// [Windows.Foundation.Metadata.Guid(2985540512, 4238, 22029, 150, 129, 38, 57, 27, 75, 195, 13)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
struct IKeyIndexMapping
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.Guid(2985540512, 4238, 22029, 150, 129, 38, 57, 27, 75, 195, 13)]
[Windows.Foundation.Metadata.Version(1)]
public interface IKeyIndexMapping
[Windows.Foundation.Metadata.Guid(2985540512, 4238, 22029, 150, 129, 38, 57, 27, 75, 195, 13)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public interface IKeyIndexMapping
Public Interface IKeyIndexMapping
屬性
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute GuidAttribute VersionAttribute ContractVersionAttribute

方法

IndexFromKey(String)

擷取具有指定唯一識別碼的專案索引 (索引鍵) 。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

KeyFromIndex(Int32)

擷取位於指定索引處專案的唯一識別碼 (索引鍵) 。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

適用於