Share via


SPIisWebSite.InstanceId Property

Gets the instance ID of the Internet Information Services (IIS) Web site.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property InstanceId As Integer
    Get
'Usage
Dim instance As SPIisWebSite
Dim value As Integer

value = instance.InstanceId
public int InstanceId { get; }

Property Value

Type: System.Int32
A 32-bit integer that indicates the instance ID of the IIS Web site.

Remarks

Microsoft SharePoint Foundation integrates with ASP.NET at the level of the IIS Web site. Each IIS Web site that will host SharePoint Foundation sites must go through a one-time transformation to be configured as a Web application.

This property is not the same as the site identification number that differentiates between sites that have identical site names.

See Also

Reference

SPIisWebSite Class

SPIisWebSite Members

Microsoft.SharePoint.Administration Namespace

PreferredInstanceId