共用方式為


SPServiceInstance.Instance Property

Gets the name of this instance.

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

Syntax

'Declaration
Public Property Instance As String
    Get
    Set
'Usage
Dim instance As SPServiceInstance
Dim value As String

value = instance.Instance

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

Property Value

Type: System.String
A string that contains the name of the instance.

Remarks

Use the Instance property to differentiate between named instances.

See Also

Reference

SPServiceInstance Class

SPServiceInstance Members

Microsoft.SharePoint.Administration Namespace