Export (0) Print
Expand All

SPIisWebSite class

Represents an Internet Information Services (IIS) Web site.


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

<UpgradableAttribute> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPIisWebSite _
	Inherits SPMetabaseObject
Dim instance As SPIisWebSite

Use the SPIisWebSite constructor to return an IIS Web site.

The following example modifies the description that is used for an IIS Web site.

Dim uri As New Uri("http://MyServer:999")
Dim webApp As SPWebApplication = SPWebApplication.Lookup(uri)

Dim instID As Integer = webApp.IisSettings(SPUrlZone.Default).PreferredInstanceId
Dim iisWebSite As New SPIisWebSite(instID)
iisWebSite.ServerComment = "MyDescription"

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