MobileBroadbandModem.GetIsPassthroughEnabled(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves a value indicating whether passthrough mode is enabled (for either the active or inactive slot, for Dual Sim Single Active devices).
Note
This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators.
If you want to use this API and publish your app to the Microsoft Store, then you'll need to request special approval to use the custom capability Microsoft.eSIMManagement_8wekyb3d8bbwe. For more info, see Custom capabilities.
public:
virtual bool GetIsPassthroughEnabled(int slotindex) = GetIsPassthroughEnabled;
/// [Windows.Foundation.Metadata.Overload("GetIsPassthroughEnabledWithSlotIndex")]
bool GetIsPassthroughEnabled(int const& slotindex);
[Windows.Foundation.Metadata.Overload("GetIsPassthroughEnabledWithSlotIndex")]
public bool GetIsPassthroughEnabled(int slotindex);
function getIsPassthroughEnabled(slotindex)
Public Function GetIsPassthroughEnabled (slotindex As Integer) As Boolean
Parameters
- slotindex
-
Int32
int
The 0-based slot index (slot number) to query about.
Returns
bool
A value of true
if passthrough mode is enabled; otherwise, false
.
- Attributes
Windows requirements
Device family |
Windows 11 Insider Preview (introduced in 10.0.23504.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v15.0)
|
App capabilities |
Microsoft.eSIMManagement_8wekyb3d8bbwe
|