다음을 통해 공유


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)

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