AuthorizeTethering | authorizeTethering method

NetworkOperatorNotificationEventDetails.AuthorizeTethering | authorizeTethering method

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

Syntax


public void AuthorizeTethering(
  bool allow, 
  string entitlementFailureReason
)

Parameters

allow

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

true if tethering is permitted; otherwise, false.

entitlementFailureReason

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The reason tethering is not permitted.

Requirements (Windows 10 device family)

Device family

Desktop, introduced version 10.0.10240.0

API contract

Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract, introduced version 1.0

Namespace

Windows.Networking.NetworkOperators
Windows::Networking::NetworkOperators [C++]

Metadata

Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Networking.NetworkOperators
Windows::Networking::NetworkOperators [C++]

Metadata

Windows.winmd

See also

NetworkOperatorNotificationEventDetails

 

 

Show:
© 2016 Microsoft