MonobjcMonobjc Documented Class Library
InitWithDomainTypeNamePort Method (domain, type, name, port)
NamespacesMonobjc.FoundationNSNetServiceInitWithDomainTypeNamePort(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 virtual Id InitWithDomainTypeNamePort(
	NSString domain,
	NSString type,
	NSString name,
	int port
)
Public Overridable Function InitWithDomainTypeNamePort ( _
	domain As NSString, _
	type As NSString, _
	name As NSString, _
	port As Integer _
) As Id
public:
virtual Id^ InitWithDomainTypeNamePort(
	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

[Missing <returns> documentation for "M:Monobjc.Foundation.NSNetService.InitWithDomainTypeNamePort(Monobjc.Foundation.NSString,Monobjc.Foundation.NSString,Monobjc.Foundation.NSString,System.Int32)"]

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)