IKeyIndexMapping Interface

Définition

Fournit des méthodes qui prennent en charge le mappage entre l’identificateur unique et l’index d’un élément.

Cette documentation s’applique à WinUI 2 pour UWP (pour WinUI dans le SDK d'application Windows, consultez les espaces de noms SDK d'application Windows).

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
Attributs
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute GuidAttribute VersionAttribute ContractVersionAttribute

Méthodes

IndexFromKey(String)

Récupère l’index de l’élément qui a l’identificateur unique (clé) spécifié.

Cette documentation s’applique à WinUI 2 pour UWP (pour WinUI dans le SDK d'application Windows, consultez les espaces de noms SDK d'application Windows).

KeyFromIndex(Int32)

Récupère l’identificateur unique (clé) de l’élément à l’index spécifié.

Cette documentation s’applique à WinUI 2 pour UWP (pour WinUI dans le SDK d'application Windows, consultez les espaces de noms SDK d'application Windows).

S’applique à