Share via


SPFeature.Parent Property

Gets the parent object that represents the scope of the Feature.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property Parent As Object
    Get
'Usage
Dim instance As SPFeature
Dim value As Object

value = instance.Parent
public Object Parent { get; }

Property Value

Type: System.Object
An object that represents the scope of the Feature. If the scope is SPFeatureScope.Web, then the return value is an SPWeb object boxed as type Object. If the scope is SPFeatureScope.Site, then the return value is an SPSite object boxed as type System.Object.

See Also

Reference

SPFeature Class

SPFeature Members

Microsoft.SharePoint Namespace

SPFeatureScope