Export (0) Print
Expand All

Host Property

IIS 7.0

Gets the host value of the binding.

Namespace:  Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public string Host { get; }

Property Value

Type: System..::..String
The host value of the binding.

A value of String..::..Empty indicates that the binding is not bound to a specific host or that the binding is not an IP port host binding.

The following example demonstrates the Host property. This code example is part of a larger example provided for the Binding Class.

bindingdisplay = bindingdisplay + "\n   Host: " + binding.Host;


Community Additions

ADD
Show:
© 2014 Microsoft