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 对象关联的用户。

如果 CortanaActionableInsights 对象是使用 GetDefault 方法创建的,则可能会返回 null

属性

Windows 要求

应用功能
cortanaSurface

注解

CortanaActionableInsights 类要求将以下内容添加到 Package.appxmanifest:

  • 要 <打包>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • 在“功能”下<>
    • <rescap:capability name="cortanaSurface"/>

适用于

另请参阅