MonobjcMonobjc Documented Class Library
SetCredentialForProtectionSpace Method (credential, protectionSpace)
NamespacesMonobjc.FoundationNSURLCredentialStorageSetCredentialForProtectionSpace(NSURLCredential, NSURLProtectionSpace)

Adds credential to the credential storage for the specified protectionSpace.

Original signature is '- (void)setCredential:(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 SetCredentialForProtectionSpace(
	NSURLCredential credential,
	NSURLProtectionSpace protectionSpace
)
Public Overridable Sub SetCredentialForProtectionSpace ( _
	credential As NSURLCredential, _
	protectionSpace As NSURLProtectionSpace _
)
public:
virtual void SetCredentialForProtectionSpace(
	NSURLCredential^ credential, 
	NSURLProtectionSpace^ protectionSpace
)
Parameters
credential (NSURLCredential)
The credential to add. If a credential with the same user name already exists in protectionSpace, then credential replaces the existing object.
protectionSpace (NSURLProtectionSpace)
The protection space to which to add the credential.
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)