SPRole.ParentWeb Property
NOTE: This API is now 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 ParentWeb property returned the parent Web site for the role 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 SPRoleDefinition class instead")> _
Public ReadOnly Property ParentWeb As SPWeb
Get
'Usage
Dim instance As SPRole
Dim value As SPWeb
value = instance.ParentWeb
[ObsoleteAttribute("Use the SPRoleDefinition class instead")]
public SPWeb ParentWeb { get; }
Property Value
Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the Web site.