Share via


SPIisWebSite.ServerBindings Property

Gets or sets a list of server bindings that are served by the Internet Information Services (IIS) Web site.

Namespace:  Microsoft.SharePoint.AdministrationOperation
Assembly:  Microsoft.SharePoint.AdministrationOperation (in Microsoft.SharePoint.AdministrationOperation.dll)

Syntax

'Declaration
Public Property ServerBindings As String()
    Get
    Set
'Usage
Dim instance As SPIisWebSite
Dim value As String()

value = instance.ServerBindings

instance.ServerBindings = value
public string[] ServerBindings { get; set; }

Property Value

Type: []
A string array that contains the list of server bindings.

Remarks

SPServerBinding object is a string that IIS uses to determine which network endpoints are used by the server instance. Use an indexer to return a single server binding from the collection. The string format is IP: Port: Hostname.

For a code sample on how to instantiate an SPIisWebSite object to access the server bindings for the local SharePoint Foundation farm, see ServerBindings.

See Also

Reference

SPIisWebSite Class

SPIisWebSite Members

Microsoft.SharePoint.AdministrationOperation Namespace