Share via


NetworkOperatorNotificationEventDetails.AuthorizeTethering Method

Definition

Used to indicate if tethering is permitted for a device. If it is not, a reason can be provided.

public:
 virtual void AuthorizeTethering(bool allow, Platform::String ^ entitlementFailureReason) = AuthorizeTethering;
void AuthorizeTethering(bool const& allow, winrt::hstring const& entitlementFailureReason);
public void AuthorizeTethering(bool allow, string entitlementFailureReason);
function authorizeTethering(allow, entitlementFailureReason)
Public Sub AuthorizeTethering (allow As Boolean, entitlementFailureReason As String)

Parameters

allow
Boolean

bool

true if tethering is permitted; otherwise, false.

entitlementFailureReason
String

Platform::String

winrt::hstring

The reason tethering is not permitted.

Windows requirements

App capabilities
cellularDeviceControl cellularDeviceIdentity

Applies to