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

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.
Show: