Поделиться через


CortanaActionableInsights.User Свойство

Определение

Возвращает пользователя, связанного с текущим объектом CortanaActionableInsights .

public:
 property User ^ User { User ^ get(); };
User User();
/// [get: Windows.Foundation.Metadata.Deprecated("CortanaActionableInsights is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
User User();
public User User { get; }
public User User { [Windows.Foundation.Metadata.Deprecated("CortanaActionableInsights is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")] get; }
var user = cortanaActionableInsights.user;
Public ReadOnly Property User As User

Значение свойства

Пользователь, связанный с текущим объектом CortanaActionableInsights .

Может возвращать значение NULL , если объект CortanaActionableInsights был создан с помощью метода GetDefault .

Атрибуты

Требования к Windows

Возможности приложения
cortanaSurface

Комментарии

Класс CortanaActionableInsights требует добавления в package.appxmanifest следующее:

  • В <пакет>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • В разделе <Возможности>
    • <rescap:capability name="cortanaSurface"/>

Применяется к

См. также раздел