WKWebsiteDataStore.RemoveDataOfTypesAsync Method

Definition

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

websiteDataTypes
NSSet<NSString>

The types of data to remove.

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

dataTypes
NSSet<NSString>

The types of data to remove.

dataRecords
WKWebsiteDataRecord[]

The data records from which to delete data of the specified type.

Returns

A task that represents the asynchronous RemoveDataOfTypes operation

Applies to