Export (0) Print
Expand All

SPServiceInstance.Roles property

NOTE: This API is now obsolete.

Gets a list of the roles to which the service instance belongs, for classification on the Services on Server page in SharePoint Central Administration.

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

[ObsoleteAttribute("Roles have been deprecated.")]
public virtual ICollection<string> Roles { get; }

Property value

Type: System.Collections.Generic.ICollection<String>
A System.Collections.Generic.ICollection<string> that contains the list of roles, which, by default, includes SingleServer and WebFrontEnd.
Show:
© 2014 Microsoft