MonobjcMonobjc Documented Class Library
InitWithResponseDataUserInfoStoragePolicy Method (response, data, userInfo, storagePolicy)
NamespacesMonobjc.FoundationNSCachedURLResponseInitWithResponseDataUserInfoStoragePolicy(NSURLResponse, NSData, NSDictionary, NSURLCacheStoragePolicy)

Initializes an NSCachedURLResponse object.

Original signature is '- (id)initWithResponse:(NSURLResponse *)response data:(NSData *)data userInfo:(NSDictionary *)userInfo storagePolicy:(NSURLCacheStoragePolicy)storagePolicy'

Available in Mac OS X v10.2 with Safari 1.0 installed and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithResponseDataUserInfoStoragePolicy(
	NSURLResponse response,
	NSData data,
	NSDictionary userInfo,
	NSURLCacheStoragePolicy storagePolicy
)
Public Overridable Function InitWithResponseDataUserInfoStoragePolicy ( _
	response As NSURLResponse, _
	data As NSData, _
	userInfo As NSDictionary, _
	storagePolicy As NSURLCacheStoragePolicy _
) As Id
public:
virtual Id^ InitWithResponseDataUserInfoStoragePolicy(
	NSURLResponse^ response, 
	NSData^ data, 
	NSDictionary^ userInfo, 
	NSURLCacheStoragePolicy storagePolicy
)
Parameters
response (NSURLResponse)
The response to cache.
data (NSData)
The data to cache.
userInfo (NSDictionary)
An optional dictionary of user information. May be nil.
storagePolicy (NSURLCacheStoragePolicy)
The storage policy for the cached response.
Return Value
The NSCachedURLResponse object, initialized using the given data.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)