SPServer.Role property
取得伺服器的角色。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property Role As SPServerRole
Get
Set
'用途
Dim instance As SPServer
Dim value As SPServerRole
value = instance.Role
instance.Role = value
public SPServerRole Role { get; set; }
Property value
Type: Microsoft.SharePoint.Administration.SPServerRole
SPServerRole 值,指出伺服器的角色。