MonobjcMonobjc Documented Class Library
SetDefaultCredentialForProtectionSpace Method (credential, protectionSpace)
NamespacesMonobjc.FoundationNSURLCredentialStorageSetDefaultCredentialForProtectionSpace(NSURLCredential, NSURLProtectionSpace)

Sets the default credential for a specified protection space.

Original signature is '- (void)setDefaultCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)protectionSpace'

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

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetDefaultCredentialForProtectionSpace(
	NSURLCredential credential,
	NSURLProtectionSpace protectionSpace
)
Public Overridable Sub SetDefaultCredentialForProtectionSpace ( _
	credential As NSURLCredential, _
	protectionSpace As NSURLProtectionSpace _
)
public:
virtual void SetDefaultCredentialForProtectionSpace(
	NSURLCredential^ credential, 
	NSURLProtectionSpace^ protectionSpace
)
Parameters
credential (NSURLCredential)
The URL credential to set as the default for protectionSpace. If the receiver does not contain credential in the specified protectionSpace it will be added.
protectionSpace (NSURLProtectionSpace)
The protection space whose default credential is being set.
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)