SPServiceInstance.Roles 属性
请注意:此 API 现在已过时。
获取在 SharePoint 管理中心中的服务器上的服务页上的分类的服务实例所属的角色的列表。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ObsoleteAttribute("Roles have been deprecated.")> _
Public Overridable ReadOnly Property Roles As ICollection(Of String)
Get
用法
Dim instance As SPServiceInstance
Dim value As ICollection(Of String)
value = instance.Roles
[ObsoleteAttribute("Roles have been deprecated.")]
public virtual ICollection<string> Roles { get; }
属性值
类型:System.Collections.Generic.ICollection<String>
包含列表的角色,默认情况下,这包括SingleServer和WebFrontEndSystem.Collections.Generic.ICollection<string> 。