SPRoleCollection.Web Property
NOTE: This API is now obsolete.
Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization Object Model. (In Windows SharePoint Services 2.0, the Web property returned the parent Web site for the collection of roles and is maintained for backward compatibility.)
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")> _
Public ReadOnly Property Web As SPWeb
Get
'Usage
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
An SPWeb object that represents the parent site.