次の方法で共有


SPServerBinding class

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.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPServerBinding

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPServerBinding _
    Inherits SPAutoSerializingObject
'Usage
Dim instance As SPServerBinding
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPServerBinding : SPAutoSerializingObject

Remarks

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.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPServerBinding members

Microsoft.SharePoint.Administration namespace