SPPolicyRoleCollection.GetSpecialRole method
會傳回指定之的原則的角色類型為基礎的預設原則角色。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function GetSpecialRole ( _
type As SPPolicyRoleType _
) As SPPolicyRole
'用途
Dim instance As SPPolicyRoleCollection
Dim type As SPPolicyRoleType
Dim returnValue As SPPolicyRole
returnValue = instance.GetSpecialRole(type)
public SPPolicyRole GetSpecialRole(
SPPolicyRoleType type
)
參數
type
Type: Microsoft.SharePoint.Administration.SPPolicyRoleType指定此角色類型SPPolicyRoleType值。
傳回值
Type: Microsoft.SharePoint.Administration.SPPolicyRole
表示原則角色SPPolicyRole物件。