MonobjcMonobjc Documented Class Library
InitWithHostPortProtocolRealmAuthenticationMethod Method (host, port, protocol, realm, authenticationMethod)
NamespacesMonobjc.FoundationNSURLProtectionSpaceInitWithHostPortProtocolRealmAuthenticationMethod(NSString, NSInteger, NSString, NSString, NSString)

Initializes a protection space object.

Original signature is '- (id)initWithHost:(NSString *)host port:(NSInteger)port protocol:(NSString *)protocol realm:(NSString *)realm authenticationMethod:(NSString *)authenticationMethod'

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

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithHostPortProtocolRealmAuthenticationMethod(
	NSString host,
	NSInteger port,
	NSString protocol,
	NSString realm,
	NSString authenticationMethod
)
Public Overridable Function InitWithHostPortProtocolRealmAuthenticationMethod ( _
	host As NSString, _
	port As NSInteger, _
	protocol As NSString, _
	realm As NSString, _
	authenticationMethod As NSString _
) As Id
public:
virtual Id^ InitWithHostPortProtocolRealmAuthenticationMethod(
	NSString^ host, 
	NSInteger port, 
	NSString^ protocol, 
	NSString^ realm, 
	NSString^ authenticationMethod
)
Parameters
host (NSString)
The host name for the protection space object.
port (NSInteger)
The port for the protection space object. If port is 0 the default port for the specified protocol is used, for example, port 80 for HTTP. Note that servers can, and do, treat these values differently.
protocol (NSString)
The protocol for the protection space object. The value of protocol is equivalent to the scheme for a URL in the protection space, for example, “http”, “https”, “ftp”, etc.
realm (NSString)
A string indicating a protocol specific subdivision of the host. realm may be nil if there is no specified realm or if the protocol doesn’t support realms.
authenticationMethod (NSString)
The type of authentication to use. authenticationMethod should be set to one of the values in “Constants” or nil to use the default, NSURLAuthenticationMethodDefault.
Return Value

[Missing <returns> documentation for "M:Monobjc.Foundation.NSURLProtectionSpace.InitWithHostPortProtocolRealmAuthenticationMethod(Monobjc.Foundation.NSString,Monobjc.Foundation.NSInteger,Monobjc.Foundation.NSString,Monobjc.Foundation.NSString,Monobjc.Foundation.NSString)"]

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)