Binding::BindingInformation Property

IIS 7.0
 

Gets or sets the binding information for the current binding.

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

public:
property String^ BindingInformation {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The IP address, port, and host name for the current binding.

The value of this property is a colon-delimited string that includes the IP address, port, and host name of the binding. You can leave the host name blank. You can set the IP address to "*" to indicate that the binding works for all variables.

For example, a binding that is set for all IP addresses on port 80 and has no specified host name returns "*:80:" from this property. A binding that is set for IP address 192.168.1.150 on port 8080 returns "192.168.1.150:8080:". A binding that is set for all IP addresses on port 80 for a host named "microsoft.com" returns "*:80:microsoft.com".

The BindingInformation property values are maintained in the ApplicationHost.config file.

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

Return to top
Show: