다음을 통해 공유


SPServer.LocalServerRole property

Gets the role of the local server.

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

Syntax

'Declaration
Public Shared ReadOnly Property LocalServerRole As SPServerRole
    Get
'Usage
Dim value As SPServerRole

value = SPServer.LocalServerRole
public static SPServerRole LocalServerRole { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPServerRole
An SPServerRole value that indicates the role of the local server.

See also

Reference

SPServer class

SPServer members

Microsoft.SharePoint.Administration namespace