WalletItemCustomProperty.AutoDetectLinks 属性

定义

注意

ApplicationModel.Wallet 命名空间不再受支持,不久将弃用。 建议开发人员避免使用此命名空间。

获取或设置此 WalletItemCustomProperty 是否为实体提取且在显示时可操作。

public:
 property bool AutoDetectLinks { bool get(); void set(bool value); };
bool AutoDetectLinks();

void AutoDetectLinks(bool value);
/// [get: Windows.Foundation.Metadata.Deprecated("IWalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("IWalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
bool AutoDetectLinks();

void AutoDetectLinks(bool value);
public bool AutoDetectLinks { get; set; }
public bool AutoDetectLinks { [Windows.Foundation.Metadata.Deprecated("IWalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("IWalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")] set; }
var boolean = walletItemCustomProperty.autoDetectLinks;
walletItemCustomProperty.autoDetectLinks = boolean;
Public Property AutoDetectLinks As Boolean

属性值

Boolean

bool

如果WalletItemCustomProperty 是实体提取的且在显示时可操作,则为 true;否则为 false

属性

注解

实体提取 是自动行为的术语,它可以将数据中的字符串与特定模式匹配,并在 UI 中为该项自动生成相应的操作/行为。 此方法通常用于电子邮件应用程序,此处也用于钱包项目显示的 UI 逻辑。 例如,一个 10 位数的字符串,其中每个字符都是数字 0-9,可以提取实体来表示电话号码,关联的操作是发起对该号码的呼叫。 由于模式可能存在 false 匹配,因此默认值为 false,但如果知道 WalletItemCustomProperty 中的数据和匹配行为,并且需要实体提取行为,请将此属性设置为 true

适用于

另请参阅