MonobjcMonobjc Documented Class Library
SetCookiesForURLMainDocumentURL Method (cookies, theURL, mainDocumentURL)
NamespacesMonobjc.FoundationNSHTTPCookieStorageSetCookiesForURLMainDocumentURL(NSArray, NSURL, NSURL)

Adds an array of cookies to the receiver if the receiver’s cookie acceptance policy permits.

Original signature is '- (void)setCookies:(NSArray *)cookies forURL:(NSURL *)theURL mainDocumentURL:(NSURL *)mainDocumentURL'

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

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetCookiesForURLMainDocumentURL(
	NSArray cookies,
	NSURL theURL,
	NSURL mainDocumentURL
)
Public Overridable Sub SetCookiesForURLMainDocumentURL ( _
	cookies As NSArray, _
	theURL As NSURL, _
	mainDocumentURL As NSURL _
)
public:
virtual void SetCookiesForURLMainDocumentURL(
	NSArray^ cookies, 
	NSURL^ theURL, 
	NSURL^ mainDocumentURL
)
Parameters
cookies (NSArray)
The cookies to add.
theURL (NSURL)
The URL associated with the added cookies.
mainDocumentURL (NSURL)
The URL of the main HTML document for the top-level frame, if known. Can be nil. This URL is used to determine if the cookie should be accepted if the cookie accept policy is NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain.
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)