ConnectionProfile.CanDelete Property
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.
Gets a value that indicates whether or not it is possible to delete this connection profile. This can help determine whether TryDeleteAsync is likely to succeed.
public:
property bool CanDelete { bool get(); };
bool CanDelete();
public bool CanDelete { get; }
var boolean = connectionProfile.canDelete;
Public ReadOnly Property CanDelete As Boolean
Property Value
bool
true
if it is possible to delete this connection profile, otherwise false
.
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|
Remarks
If you're unable to delete a connection profile, then that might be due to policies that have been configured by a network administrator. Also, you may need to configure additional capabilities in order to delete certain types of connection profiles. For Wi-Fi connection profiles, the wiFiControl capability is needed. Calling WiFiAdapter.RequestAccessAsync prior to attempting to delete any Wi-Fi connection profiles may allow additional connection profiles to be deleted.