Click or drag to resize

NetworkTargetAddress Property

Gets or sets the network address.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public Layout Address { get; set; }

Property Value

Type: Layout
Remarks
The network address can be:
  • tcp://host:port - TCP (auto select IPv4/IPv6)
  • tcp4://host:port - force TCP/IPv4
  • tcp6://host:port - force TCP/IPv6
  • udp://host:port - UDP (auto select IPv4/IPv6)
  • udp4://host:port - force UDP/IPv4
  • udp6://host:port - force UDP/IPv6
  • http://host:port/pageName - HTTP using POST verb
  • https://host:port/pageName - HTTPS using POST verb
For SOAP-based webservice support over HTTP use WebService target.
See Also