Freigeben über


PhoneCallOriginManager.RequestSetAsActiveCallOriginAppAsync Methode

Definition

Ruft ein Dialogfeld auf, um die aktuelle App als Standard-App für den Telefonursprung festzulegen.

public:
 static IAsyncOperation<bool> ^ RequestSetAsActiveCallOriginAppAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
 static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
public static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
function requestSetAsActiveCallOriginAppAsync()
Public Shared Function RequestSetAsActiveCallOriginAppAsync () As IAsyncOperation(Of Boolean)

Gibt zurück

Gibt an, ob die App als Standardanwendung für den Telefonursprung festgelegt wurde.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows Mobile Extension SDK (eingeführt in 10.0.14393.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (eingeführt in v3.0)
App-Funktionen
phoneCallHistory phoneCallHistorySystem

Hinweise

Um diese API verwenden zu können, muss Ihre Anwendung als Anbieter für den Ursprung von Telefonanrufen registriert sein. Wenn die Anwendung nicht ordnungsgemäß registriert ist, löst diese API eine Ausnahme aus. Weitere Informationen zur Registrierung als Anbieter für den Ursprung von Telefonanrufen finden Sie unter Windows.ApplicationModel.Calls.Provider .

Gilt für: