Share via


User.GetPropertyAsync(String) Metode

Definisi

Mendapatkan properti untuk pengguna. Gunakan kelas KnownUserProperties untuk mendapatkan nama properti.

public:
 virtual IAsyncOperation<Platform::Object ^> ^ GetPropertyAsync(Platform::String ^ value) = GetPropertyAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IInspectable> GetPropertyAsync(winrt::hstring const& value);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<object> GetPropertyAsync(string value);
function getPropertyAsync(value)
Public Function GetPropertyAsync (value As String) As IAsyncOperation(Of Object)

Parameter

value
String

Platform::String

winrt::hstring

Properti untuk didapatkan.

Mengembalikan

IAsyncOperation<Object>

IAsyncOperation<Platform::Object>

IAsyncOperation<IInspectable>

Ketika metode ini selesai, metode ini mengembalikan properti yang diminta. Jika properti hilang atau tidak tersedia, string kosong dikembalikan.

Atribut

Persyaratan Windows

Kemampuan aplikasi
userAccountInformation

Keterangan

Lihat metode GetPropertiesAsync untuk detail tentang properti yang didukung.

Berlaku untuk

Lihat juga