Removes the existing Chromium profile.
Namespace:
DotNetBrowser.Profile
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.0
Syntax bool Remove(
IProfile profile
)
Parameters
- profile
- Type: DotNetBrowser.ProfileIProfile
The Chromium profile to remove
Return Value
Type:
Booleantrue if the profile was removed,
false otherwise.
Exceptions Exception | Condition |
---|
ArgumentException | The profile belongs to a different IEngine instance. |
Remarks
When the profile is removed, the corresponding
IBrowser instances are disposed.
The downloads in progress are canceled, and the profile directory is scheduled for deletion.
See Also