Binding.BindingInformation Property

Definition

Gets or sets the binding information for the current binding.

public:
 property System::String ^ BindingInformation { System::String ^ get(); void set(System::String ^ value); };
public string BindingInformation { get; set; }
member this.BindingInformation : string with get, set
Public Property BindingInformation As String

Property Value

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

Examples

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

bindingdisplay = bindingdisplay + "  Binding:\n   BindingInformation: " + 
    binding.BindingInformation;

Remarks

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.

Applies to