共用方式為


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: Microsoft.SharePoint.Administration.SPPolicyRole
表示原則角色SPPolicyRole物件。

請參閱

參照

SPPolicyRoleCollection class

SPPolicyRoleCollection members

Microsoft.SharePoint.Administration namespace