共用方式為


SPRoleCollection.Web property

NOTE: This API is now obsolete.

已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Web屬性傳回父網站集合的角色和維護回溯相容性。)

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

Syntax

'宣告
<ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")> _
Public ReadOnly Property Web As SPWeb
    Get
'用途
Dim instance As SPRoleCollection
Dim value As SPWeb

value = instance.Web
[ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")]
public SPWeb Web { get; }

Property value

Type: Microsoft.SharePoint.SPWeb
表示父站台的SPWeb物件。

請參閱

參照

SPRoleCollection class

SPRoleCollection members

Microsoft.SharePoint namespace