MonobjcMonobjc Documented Class Library
NSNetService Constructor (domain, type, name, port)
NamespacesMonobjc.FoundationNSNetServiceNSNetService(NSString, NSString, NSString, Int32)

Initializes the receiver as a network service of type type at the socket location specified by domain, name, and port.

Original signature is '- (id)initWithDomain:(NSString *)domain type:(NSString *)type name:(NSString *)name port:(int)port'

Available in Mac OS X v10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSNetService(
	NSString domain,
	NSString type,
	NSString name,
	int port
)
Public Sub New ( _
	domain As NSString, _
	type As NSString, _
	name As NSString, _
	port As Integer _
)
public:
NSNetService(
	NSString^ domain, 
	NSString^ type, 
	NSString^ name, 
	int port
)
Parameters
domain (NSString)
The domain for the service. For the local domain, use @"local." not @"".
type (NSString)
The network service type.
name (NSString)
The name by which the service is identified to the network. The name must be unique.
port (Int32)
The port on which the service is published.
Return Value
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)