共用方式為


NSUrlCache.StoreCachedResponse 方法

定義

多載

StoreCachedResponse(NSCachedUrlResponse, NSUrlRequest)
StoreCachedResponse(NSCachedUrlResponse, NSUrlSessionDataTask)

StoreCachedResponse(NSCachedUrlResponse, NSUrlRequest)

[Foundation.Export("storeCachedResponse:forRequest:")]
public virtual void StoreCachedResponse (Foundation.NSCachedUrlResponse cachedResponse, Foundation.NSUrlRequest forRequest);
abstract member StoreCachedResponse : Foundation.NSCachedUrlResponse * Foundation.NSUrlRequest -> unit
override this.StoreCachedResponse : Foundation.NSCachedUrlResponse * Foundation.NSUrlRequest -> unit

參數

cachedResponse
NSCachedUrlResponse
forRequest
NSUrlRequest
屬性

適用於

StoreCachedResponse(NSCachedUrlResponse, NSUrlSessionDataTask)

[Foundation.Export("storeCachedResponse:forDataTask:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void StoreCachedResponse (Foundation.NSCachedUrlResponse cachedResponse, Foundation.NSUrlSessionDataTask dataTask);
abstract member StoreCachedResponse : Foundation.NSCachedUrlResponse * Foundation.NSUrlSessionDataTask -> unit
override this.StoreCachedResponse : Foundation.NSCachedUrlResponse * Foundation.NSUrlSessionDataTask -> unit

參數

cachedResponse
NSCachedUrlResponse
屬性

適用於