WKWebsiteDataStore.RemoveDataOfTypesAsync 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.
Overloads
RemoveDataOfTypesAsync(NSSet<NSString>, NSDate) |
Removes data of the specified type from the store, and passes the removed items to a completion handler. |
RemoveDataOfTypesAsync(NSSet<NSString>, WKWebsiteDataRecord[]) |
Removes data of the specified type from the store, and passes the removed items to a completion handler. |
RemoveDataOfTypesAsync(NSSet<NSString>, NSDate)
Removes data of the specified type from the store, and passes the removed items to a completion handler.
public virtual System.Threading.Tasks.Task RemoveDataOfTypesAsync (Foundation.NSSet<Foundation.NSString> websiteDataTypes, Foundation.NSDate date);
abstract member RemoveDataOfTypesAsync : Foundation.NSSet<Foundation.NSString> * Foundation.NSDate -> System.Threading.Tasks.Task
override this.RemoveDataOfTypesAsync : Foundation.NSSet<Foundation.NSString> * Foundation.NSDate -> System.Threading.Tasks.Task
Parameters
- date
- NSDate
The date after which to remove all data of the specified type.
Returns
A task that represents the asynchronous RemoveDataOfTypes operation
Remarks
The RemoveDataOfTypesAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
To be added.
Applies to
RemoveDataOfTypesAsync(NSSet<NSString>, WKWebsiteDataRecord[])
Removes data of the specified type from the store, and passes the removed items to a completion handler.
public virtual System.Threading.Tasks.Task RemoveDataOfTypesAsync (Foundation.NSSet<Foundation.NSString> dataTypes, WebKit.WKWebsiteDataRecord[] dataRecords);
abstract member RemoveDataOfTypesAsync : Foundation.NSSet<Foundation.NSString> * WebKit.WKWebsiteDataRecord[] -> System.Threading.Tasks.Task
override this.RemoveDataOfTypesAsync : Foundation.NSSet<Foundation.NSString> * WebKit.WKWebsiteDataRecord[] -> System.Threading.Tasks.Task
Parameters
- dataRecords
- WKWebsiteDataRecord[]
The data records from which to delete data of the specified type.
Returns
A task that represents the asynchronous RemoveDataOfTypes operation