共用方式為


SPServerProductInfo.ServerName property

此伺服器的名稱。

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

Syntax

'宣告
Public ReadOnly Property ServerName As String
    Get
'用途
Dim instance As SPServerProductInfo
Dim value As String

value = instance.ServerName
public string ServerName { get; }

Property value

Type: System.String
伺服器名稱String方式呈現。

請參閱

參照

SPServerProductInfo class

SPServerProductInfo members

Microsoft.SharePoint.Administration namespace