共用方式為


SPServiceInstance.Instance property

取得此執行個體的名稱。

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

Syntax

'宣告
Public Property Instance As String
    Get
    Set
'用途
Dim instance As SPServiceInstance
Dim value As String

value = instance.Instance

instance.Instance = value
public string Instance { get; set; }

Property value

Type: System.String
包含的執行個體名稱的字串。

備註

使用Instance屬性來區分具名執行個體。

請參閱

參照

SPServiceInstance class

SPServiceInstance members

Microsoft.SharePoint.Administration namespace