SPServer.Role property

Gets the role of the server.

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

Syntax

'Declaration
Public Property Role As SPServerRole
    Get
    Set
'Usage
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
An SPServerRole value that indicates the role of the server.

See also

Reference

SPServer class

SPServer members

Microsoft.SharePoint.Administration namespace