Freigeben über


AppCapture.SetAllowedAsync(Boolean) Methode

Definition

Legt einen Wert fest, der angibt, ob die App-Erfassung derzeit für die aufrufende App zulässig ist.

public:
 static IAsyncAction ^ SetAllowedAsync(bool allowed);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction SetAllowedAsync(bool const& allowed);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SetAllowedAsync(bool allowed);
function setAllowedAsync(allowed)
Public Shared Function SetAllowedAsync (allowed As Boolean) As IAsyncAction

Parameter

allowed
Boolean

bool

True, wenn die App-Erfassung zulässig ist; andernfalls false.

Gibt zurück

Eine asynchrone Aktion.

Attribute

Windows-Anforderungen

Anforderungen Beschreibung
Gerätefamilie
Windows 10 Fall Creators Update (eingeführt in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v5.0)

Hinweise

Der Standardwert für diese Eigenschaft ist true, was bedeutet, dass die App-Erfassung zulässig ist. Wenn eine App diesen Wert festlegt, wird der Setwert nicht über Instanzen der App hinweg beibehalten.

Gilt für: