SPServiceInstance.Roles property
NOTE: This API is now obsolete.
取得分類在 SharePoint 管理中心的伺服器上的服務] 頁面上的服務執行個體所屬角色的清單。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<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; }
Property value
Type: System.Collections.Generic.ICollection<String>
System.Collections.Generic.ICollection<string>包含其,根據預設,包含SingleServer和WebFrontEnd清單中的角色。