ZeroconfServices Documation
NetService Constructor (domain, type, name, port)
NamespacesZeroconfServiceNetServiceNetServiceNetServiceNew(String, String, String, Int32)
Initializes a new instance of the NetService class for publishing.
Declaration Syntax
C#Visual BasicVisual C++
public NetService(
	string domain,
	string type,
	string name,
	int port
)
Public Sub New ( _
	domain As String, _
	type As String, _
	name As String, _
	port As Integer _
)
public:
NetService (
	String^ domain, 
	String^ type, 
	String^ name, 
	int port
)
Parameters
domain (String)

The domain of the service. For the local domain, use "local." not "".

To us the default domain, simply parse "".

type (String)

The network service type.

This must include both the transport type ("_tcp." or ".udp") and the service name prefixed with an underscore("_"). For example, to search for an HTTP service on TCP you would use "_http._tcp."

name (String)
The name of the service. This name must be unique.
port (Int32)
The port number on which your service is available.
Remarks

This constructor is the appropriate constructor used to publish a service. You can not use this constructor to resolve a service.

Assembly: ZeroconfService (Module: ZeroconfService) Version: 0.1.0.0