共用方式為


SPPolicyRole.Id property

取得原則角色的 GUID。

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

Syntax

'宣告
Public ReadOnly Property Id As Guid
    Get
'用途
Dim instance As SPPolicyRole
Dim value As Guid

value = instance.Id
public Guid Id { get; }

Property value

Type: System.Guid
System.Guid可識別原則角色。

備註

識別碼為零,直到原則角色新增至集合。

請參閱

參照

SPPolicyRole class

SPPolicyRole members

Microsoft.SharePoint.Administration namespace