DevicePolicyManager.GetAlwaysOnVpnLockdownWhitelist(ComponentName) 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.
Called by device or profile owner to query the set of packages that are allowed to access the network directly when always-on VPN is in lockdown mode but not connected.
[Android.Runtime.Register("getAlwaysOnVpnLockdownWhitelist", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetAlwaysOnVpnLockdownWhitelist_Landroid_content_ComponentName_Handler", ApiSince=29)]
public virtual System.Collections.Generic.ICollection<string>? GetAlwaysOnVpnLockdownWhitelist (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getAlwaysOnVpnLockdownWhitelist", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetAlwaysOnVpnLockdownWhitelist_Landroid_content_ComponentName_Handler", ApiSince=29)>]
abstract member GetAlwaysOnVpnLockdownWhitelist : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>
override this.GetAlwaysOnVpnLockdownWhitelist : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with.
Returns
- Attributes
Remarks
Called by device or profile owner to query the set of packages that are allowed to access the network directly when always-on VPN is in lockdown mode but not connected. Returns null
when always-on VPN is not active or not in lockdown mode.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.