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)


Public Overrides ReadOnly Property Roles As ICollection(Of String)

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


SPWebServiceInstance Class

SPWebServiceInstance Members

Microsoft.SharePoint.Administration Namespace