共用方式為


NSUrlSessionDataDelegate.WillCacheResponse 方法

定義

[Foundation.Export("URLSession:dataTask:willCacheResponse:completionHandler:")]
public virtual void WillCacheResponse (Foundation.NSUrlSession session, Foundation.NSUrlSessionDataTask dataTask, Foundation.NSCachedUrlResponse proposedResponse, Action<Foundation.NSCachedUrlResponse> completionHandler);
abstract member WillCacheResponse : Foundation.NSUrlSession * Foundation.NSUrlSessionDataTask * Foundation.NSCachedUrlResponse * Action<Foundation.NSCachedUrlResponse> -> unit
override this.WillCacheResponse : Foundation.NSUrlSession * Foundation.NSUrlSessionDataTask * Foundation.NSCachedUrlResponse * Action<Foundation.NSCachedUrlResponse> -> unit

參數

session
NSUrlSession
proposedResponse
NSCachedUrlResponse
completionHandler
Action<NSCachedUrlResponse>
屬性

適用於