SPServerBinding class
SharePoint 2013
Represents a server binding for an Internet Information Services (IIS) Web site, which includes at least one of the following: IP address, port, or host name.
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPServerBinding
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPServerBinding
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Use the ServerBindings property of the SPIisSettings class to return a collection of SPServerBinding objects that represent all the server bindings for an IIS Web site.
Use an indexer to return a single server binding from the collection. For example, if the collection is assigned to a variable named myServerBindings, use myServerBindings[index] in C#, or myServerBindings(index) in Visual Basic, where index is the index number of the binding in the collection.