SPWebServiceInstance.Roles Property

Gets a generic string collection that indicates the possible roles for the current server, which by default include SingleServer and WebFrontEnd.

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

Syntax

Public Overrides ReadOnly Property Roles As ICollection(Of String)
    Get

Dim instance As SPWebServiceInstance
Dim value As ICollection(Of String)

value = instance.Roles
public override ICollection<string> Roles { get; }

Property Value

Type: System.Collections.Generic.ICollection<String>
A System.Collections.Generic.ICollection object that contains SingleServer and WebFrontEnd.

See Also

Reference

SPWebServiceInstance Class

SPWebServiceInstance Members

Microsoft.SharePoint.Administration Namespace