Bagikan melalui


CortanaActionableInsights.User Properti

Definisi

Mendapatkan pengguna yang terkait dengan objek CortanaActionableInsights saat ini.

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

Nilai Properti

Pengguna yang terkait dengan objek CortanaActionableInsights saat ini.

Mungkin mengembalikan null jika objek CortanaActionableInsights dibuat dengan metode GetDefault .

Atribut

Persyaratan Windows

Kemampuan aplikasi
cortanaSurface

Keterangan

Kelas CortanaActionableInsights mengharuskan hal berikut ditambahkan ke Package.appxmanifest:

  • Ke <Paket>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • Di bawah <Kapabilitas>
    • <rescap:capability name="cortanaSurface"/>

Berlaku untuk

Lihat juga