MonobjcMonobjc Documented Class Library
HostWithName Method (hostname)
NamespacesMonobjc.FoundationNSHostHostWithName(NSString)

Returns a host with a specific name.

Original signature is '+ (NSHost *)hostWithName:(NSString *)hostname'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSHost HostWithName(
	NSString hostname
)
Public Shared Function HostWithName ( _
	hostname As NSString _
) As NSHost
public:
static NSHost^ HostWithName(
	NSString^ hostname
)
Parameters
hostname (NSString)
Name of the host to look up. Can be either a simple hostname, such as @"sales", or a fully qualified domain name, such as @"sales.anycorp.com".
Return Value
The host named hostname.
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)